At the start of the experiment, the scientists only added adult worms.
"However, the best surprise came at the end of the experiment when we found two young worms in the Mars soil simulant," said Wieger Wamelink of Wageningen University & Research.
The researchers used pig slurry to fertilise the soil.
"The positive effect of adding manure was not unexpected, but we were surprised that it makes Mars soil simulant outperform Earth silver sand," Wamelink said in a statement released by the university.
By digging burrows the worms also aerate and improve the structure of the soil, making watering the plants more effective.
The researchers said they were able to grow over a dozen crops in the Mars soil simulant. The crops also passed a safety test for human consumption.
"The only species that has resisted our efforts so far is spinach," the researchers said.
Get Breaking news, live coverage, and Latest News from India and around the world on NDTV.com. Catch all the Live TV action on NDTV 24x7 and NDTV India. Like us on Facebook or follow us on Twitter and Instagram for latest news and live news updates.