Earthworms are beneficial soil-dwelling organisms that play a crucial role in improving soil quality through aeration and decomposition of organic matter. They are often used in composting and gardening to enhance soil fertility.