Ants are attracted to fatty or sugary food, so try to avoid leaving these lying around in places such as your kitchen. If you do find an ant trail, wipe the trail clean where the ants have been walking – this will get rid of the pheromones that attract other ants. You should also seal up any holes, gaps or cracks that ants can crawl through.
If you do get an ant infestation indoors, ant baits provide an easy, no-mess solution. They contain an insecticide that attracts ants, which then take it back to the nest.
A simple and natural way to get rid of an ant nest is by pouring boiling water over it. There are also artificial methods like granules that you can pour into crevices and cracks or onto trails. You could also spray a liquid repellent onto the nest, or areas the ants might be attracted to, like garbage bins. Powder products work much like granules, so just apply them anywhere you find ants.