Ants need food and are especially attracted to sugars. So keep your food in sealed containers and clean up your kitchen and dining areas to remove food sources. Whether you have ants inside or outside, you have to kill the colony to eliminate your ant problem.