What turns fruit and vegetable waste into rich soil for gardening?

The microorganism such as saprophytic bacteria that present in the soil will decay them

which will be a good fertilizer for soil