Take a cucumber and peel it.
Take the peels and put them in the ant’s way. Usually they make a trail so make sure you put as much peels on their way as you can.
If you see them making a home, put a cucumber peel nearby. Also add one where they are originally coming from. With patience, they will leave. May take a day or two but it works!