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 nutrients back into the soil, making them available for other organisms to use. Additionally, fungi form symbiotic relationships with plant roots, known as mycorrhizae, which help plants absorb nutrients such as phosphorus and nitrogen from the soil. Overall, fungi are essential for recycling nutrients in ecosystems.