Earthworms in the soil help to aerate and enrich the soil. They feed on organic matter, such as dead plants and animals, and break it down into smaller particles. As they move through the soil, they create channels that allow air and water to penetrate more easily, improving the soil's structure and fertility. Earthworms also release beneficial nutrients into the soil, which can help plants to grow.