Detritus refers to organic matter produced by the decomposition of plants or animals, commonly found in soil or aquatic environments. It plays a crucial role in nutrient cycling and energy transfer within ecosystems, as it is broken down by decomposers to release nutrients back into the environment.