How do micro-organisms help in cleaning the environment?

Some micro-organisms decompose the organic matter of dead plants and animals and convert them into simple substances which mix up with the soil. These substances are again used by other plants and animals. Thus, micro-organisms decompose the harmful and smelly dead remains of plants and animals into harmless materials and thereby clean up the environment.