To improvise something is to do it with whatever is available or without planning.
There was no meat for the pizza, so we improvised with what was in the fridge.