The earthworm relies mainly on decaying leaves for its food but also eats soil containing tiny bits of animal material. Since it eats both plant and animal material, the earthworm is classified as an omnivore. While the earthworm is very important in improving the quality of soil by recycling decaying material, it also provides food for other animals. Earthworms are eaten by robins, turtles, snakes, frogs and toads.
Moles also rely heavily on earthworms in their diet.
In winter the earthworm curls up in an underground shelter known as a burrow. The burrow has an opening to the surface that may be plugged with a leaf.