Certain scents will throw ants off their pheromone trails. Cloves, cinnamon powder, thyme, marjoram, chervil, and garlic are all options. Also, ants can’t stand lemon juice, peppermint, or vinegar.