Microbes decompose dead and decaying organic matter and help with the recycling of nutrients.
Microbes present within the roots of various plants in a symbiotic association or free-living in the soil provide nutrients such as nitrogen and phosphorus, e.g. Rhizobium within the root nodules of legumes, cyanobacteria (Anabaena) within the roots of fern and cycas, Pseudomonas, Azotobacter, etc.
Microorganisms are also used as a biopesticide to control the infestation of pests, insects, etc. E.g. Bacillus thuringiensis.