A rotting log provides habitat for thousands of living organisms that break down the wood and convert it into nutrients for the soil. Bacteria, fungi, insects, and other invertebrates each play a role in the decomposition process. As the log fully decays, it enriches the soil and supports a diverse ecosystem in the forest.