Dishwashing liquid is an effective solution for killing ants. Prepare a DIY solution by mixing equal parts of dishwashing liquid and water in a spray bottle.