Ecosystems maintain nutrient cycles through processes such as decomposition, nutrient absorption by plants, nutrient leaching, and nutrient recycling. Decomposers break down organic matter into basic nutrients, which are then taken up by plants. When plants and animals die, their remains decompose and release nutrients back into the soil, where they can be used by other organisms. This continuous cycle ensures that nutrients are constantly being recycled within the ecosystem.