Mark a line and ant can't cross it. If you make a circle around ants they can't go out of this circle.
We use it as it is available in our local market.
Whatever spillage takes place during using various times, should be cleaned immediately with a wet cloth and then with a dry cloth. That will ensure that no creatures will come near that. If spillages are not cleaned immediately and properly, chances for ants coming there are high. Tins and containers having sweets and sugar or jaggery should be closed with tight lids always. This will avoid ants get gathered in that tin or around the tin.
There are some methods which can be applied to get rid of them. First is hire some pest control service who will drill deep and narrow holes everywhere in the wall and floor joints and pump some insecticide like anti termite there which would kill and repel the ants. This is a very cumbersome process and they take a few days to do that and may be you have to advise them for the density of these holes where to make more and where to make a few one and many people say that this type of treatment helps.
When I was in Chennai, I had this problem in my kitchen and I found another way to tackle it but that was not a permanent solution as I used to inject the strong anti termite solution in the holes and small apertures in the walls and joints from where the ants were emerging. It helped only a few days and again they were seen moving on the kitchen platform.
Knowledge is power.