1. Ants create and follow scent trails. That's why when you see one ant, you see many ants. If you disrupt or remove this trail, the rest of the ants can't follow it. You can do that by washing the area with soap and water or putting something on it that will interfere with the scent or the physical properties of it. Successfully used are: cinnamon, black pepper, baby powder and salt.
2. Remove anything that attracts them. Sugar and other sweets, grease and fat of any kind will attract them. A lid on the sugar bowl won't stop them as you probably know. Close everything up in air tight containers and immediately was greasy pans and dishes.
3. Go on the attack by finding the hills outside. Pour boiling water down them to kill the larvae. You may have to do this two or three more times, but they will give up and move away if you don't destroy the colony altogether.,