Detritivores play a crucial role in ecosystems by breaking down dead plant and animal material, thus recycling nutrients.