Plants are the main source of organic matter in soil. Animals and microorganisms also contribute. Microorganisms, including fungi, bacteria, and single celled protozoans, play an active role in decomposing dead plants and animals. Because organic material releases nutrients when it decays, it contributes to soil fertility. Some bacteria also aid soil fertility in the nitrogen cycle. The bulk of organic matter originates from plants.