Store food in airtight containers or keep in the refrigerator. If ants have moved in to your home, begin by finding the ant nest. If you don't see a line of ants, begin with a careful cleaning to remove all possible food sources. Then place tiny piles of sugar every 2 to 3 feet in the area where ants are seen. They will form a trail from the nest to the sugar, and this may help you find the way to the ant colony.
Ant baits work better than sprays.
The ants carry the bait back to their nest. Be sure you understand directions before using any insecticide. Treat cracks where ants crawl. Do not treat entire floors, walls, inside of drawers, tops of counters or cabinets. Do not get ant killer in food, on dishes, or cooking utensils.