Detritus is the term used to refer to the organic matter produced by the decomposition of dead plants or animals. It contributes to soil formation and nutrient cycling in ecosystems by breaking down into smaller particles over time. Detritus plays an essential role in supporting the food web by providing energy for detritivores and decomposers.