Mostly all natural remedies will repel the ants. Essential oils, herbs, and spices deter the ants with a strong odor. White vinegar not only repels the ants but also kills them. Diatomaceous earth kills ants by piercing through their exoskeleton.