Earthworms feed on the organic waste materials and give out excreta in the form of “vermicastings” that are rich in nitrates and minerals such as phosphorus, magnesium, calcium and potassium. These are used as fertilizers and enhance soil quality.