Bacteria and fungi help to decompose organic matters and add the released nutrients to the soil. This increases the soil fertility. Without microorganisms dead and decaying matters would have remained unchanged and the nutrients from those matters cannot be added to the soil. As a result fertility decreases. Bacteria and fungi both act as decomposers within an ecosystem, making them crucial in any ecosystem. This means they break down dead or decaying matter in order to gain their nutrients. Microorganisms like bacteria and fungi, act as decomposers as they break down the dead and decaying organisms into simpler nutrients that mix with the soil. These nutrients are absorbed by plants during photosynthesis.