Coffee grounds contain micronutrients such as calcium, magnesium, boron, copper, iron, and zinc that make it an ideal soil amendment. Plus, caffeine can deter or even exterminate some pests.