If you get a solution of citric acid and ammonia, it kills ants on contact. There are two processes of killing ants using citric acid and ammonia. The first process is to mix the solutions into a spray can. The second process is to keep some solution in a spray bottle and directly apply it on the ant nest.