Earthworms are hermaphrodites; each earthworm contains both male and female sex organs, however they still require a mate to reproduce

source