Earthworms are terrestrial invertebrates that inhabit moist soil. They have segmented bodies and ingest soil to digest organic matter. Earthworms reproduce sexually through cross-fertilization. They deposit fertilized eggs in cocoons in the soil, where the eggs hatch into juvenile worms. Earthworms are important for soil quality as their burrowing and digestion of organic matter aerates and enriches the soil, making it more suitable for plant growth.