To Keep Ants Outside, Try:
(1) If you can find where they are entering your home, block their entrance with a blob of petroleum jelly, then later caulk it with silicone.
(2) Vacuum the ants and wipe any surfaces where they had been with a sponge to remove the scent trail.
(3) Strew the following natural ant repellents in infested areas: catnip, mint, cucumber peel, tansy, southernwood, rue, or crushed eggshells.
(4) Place a small amount of powdered soap near their entrance. The ants will carry it to their nest, where moisture will expand the soap, and possibly destroy the nest.