Coffee grounds are a known ant repellent. The strong smell masks their scent trails, disorienting the ants. Scatter used coffee grounds around your garden and along the perimeter of your home to deter ants.