The invention discloses a method for breeding earthworms in a greenhouse. The method comprises the following steps: a place is selected to build an ecological greenhouse, wherein a ventilating system, breeding ponds and a vaporous water spray device are arranged in the greenhouse; a breeding feed is a mixture of fermented corn straw and cow dung, the fermented feed is put into the breeding ponds, a layer of loose soil with good air permeability is laid, 10000-15000 young earthworms are placed in each breeding pond, during daily management, the humidity of the breeding soil is controlled to be 20-70%, and the environment temperature is controlled to be 15-25 DEG C. According to the invention, a greenhouse breeding technology is adopted, the problems of diseases caused by environment temperature change can be effectively avoided during the breeding process, and a relatively stable growing environment is provided for earthworms; meanwhile, the breeding temperature is controlled to be 15-25 DEG C, so that the breeding period is shortened greatly; breeding in different ponds is adopted, so that a farmer can manage conveniently, the phenomenon that earthworms fleeing to other places during breeding is avoided, epidemic diseases can be effectively avoided, and breeding benefits of the farmer are increased.