To control ants indoors, follow ant trails to find the nest and spray it directly with an insecticide if possible. If the nest isn't directly accessible, use ant bait or nonrepellent insecticide around the perimeter of the house and on any trails.
Because ant colonies often contain thousands of members, they are considered one of the most difficult pests to control. For extensive ant invasions, contact a local licensed pest professional to evaluate and address the problem.
Kitchens and bathrooms are especially vulnerable to ant invasions, because they provide access to food and water. Keeping these areas clean and free of moisture can help prevent infestation. Ants build nests in damp areas, so areas with excess moisture are highly susceptible to invasion. Inspect sinks, toilets and tubs regularly for leaks. Clean bathrooms thoroughly with a disinfectant cleaner.
To protect your kitchen against ants, store sweet food items in sealed plastic containers. Place a bay leaf inside dry food containers to repel ants and other pests. Clean up any spills on counter tops and floors immediately. Dispose of overripe fruits, and clean up any leftover or spilled pet food promptly. Rinse empty food and beverage containers before recycling or throwing away, and take out the trash regularly.