When you want to control ants then you need to understand some basics before you try to do anything. First of all, there are ants that live outside your house and then there are ants that live inside. How you go about controlling these ants will depend on what type you are dealing with. A great way to start with ant pest control is simply to find out where there nest is. Of course, if you know if they are out or indoors this will help the identification. If you try to start spraying any ants you happen to see this will not help much at all because this is only "tip of the iceberg" so to speak. The rest of the colony of ants along with the queen will be hidden. You should therefore find out where the queen ant and her eggs are so that you can destroy the nest and wipe out the population.
If your ants are outside then they will typically enter your home to find food. If you want to prevent this from happening then you need to ensure that all their means of entering your home are sealed off. This means you need to seal any crack and gaps in your walls. You should also use an insecticide to wipe off any chemicals that have been left by the ants.
If you have ants nesting in your home then you will see them all year round. You need to get rid of the nests because what can happen is that ants outside the house will sense their scent and home into your home too. If you leave just a few ants in your home, this can be enough to encourage other ants to set up home too. If you don't know where the nest is then you should follow the worker ants who are out and about collecting food. They will bring the food back to the nest and lead you to it. There are many means of getting rid of the nests such as pesticides and baits.
If you go with the baiting methods basically it means that the worker ants will take the bait back to the nest and the queen ant will eat it along with some other members of the colony. You need to understand that this isn't going to work overnight but within 2 or 3 weeks you should see really good results. Alternatively you can use spray insecticides and pesticides which will kill all the ants including the queen. Even if you think that you have gotten rid of all the ants you should still keep using the treatments outside your home as this will make sure that no other ants decide to take up residency.