Decomposers play a crucial role in recycling nutrients in ecosystems by breaking down organic matter from dead organisms and waste materials into simpler forms. This process releases nutrients such as carbon, nitrogen, and phosphorus back into the soil or water, where they can be taken up by plants and other organisms, thus completing the nutrient cycle. Without decomposers, nutrients would remain locked up in dead organic matter, hindering the growth of new organisms and disrupting ecosystem balance.