Ecosystems maintain nutrient cycles through processes such as decomposition, nutrient absorption by plants, consumption by animals, and nutrient recycling by decomposers like bacteria and fungi. These processes work together to ensure that nutrients are continuously recycled within the ecosystem, allowing for sustainable growth and development of organisms within the ecosystem.