Ecosystems maintain nutrient cycling through various processes such as decomposition, nutrient uptake by plants, and nutrient recycling by decomposers like bacteria and fungi. In a balanced ecosystem, nutrients are continuously being cycled between living organisms and the environment, ensuring the availability of essential elements for all organisms within the ecosystem.