Cayenne Pepper or Black Pepper Both cayenne and black pepper repel ants. Ants hate cayenne pepper. Black pepper will work just as well too. Locate the source of the ant infestation problem, sprinkle some pepper around that area and if possible, create a wall that will stop the ants from accessing your household.