An earthworm is a terrestrial invertebrate that belongs to the order Opisthopora. They exhibit a tube-within-a-tube body plan, are externally segmented with corresponding internal segmentation, and usually have setae on all segments. They occur worldwide where soil, water, and temperature allow.