If you want to permanently get rid of ants in your home, you have to kill the queen. Once she dies, the whole colony will die. I know it sounds like a sci-fi movie, and a little cruel, but invading ants are annoying beyond measure.
Borax is the killer ingredient. You can find Borax in the laundry aisle of your supermarket. You want the ants to take the Borax back to the colony. However in order to make the ants eat the Borax, you have to make it tasty for them. So sweeten it up. In a cup mix 5 teaspoons of sugar, 5 teaspoons of Borax and a dash of honey. Add boiling water and mix till dissolved. Put into a spray bottle and spray on the ants and the areas where they run. RIP ants.