Earthworms play a crucial role in maintaining healthy soil ecosystems. They help to improve soil structure, aerate the soil, decompose organic matter, and recycle nutrients. Their presence is essential for promoting plant growth and overall soil health.