Fungi play a crucial role in nutrient cycling by breaking down organic matter, such as dead plants and animals, into simpler compounds. This decomposition process releases essential nutrients back into the soil, making them available for other organisms to use. Fungi also form symbiotic relationships with plants, such as mycorrhizae, where they help plants absorb nutrients like phosphorus and nitrogen from the soil. Overall, fungi are key players in recycling nutrients and maintaining ecosystem health.