The Best Way to Control Ants
The most effective way to control ants is by finding the colony and treating it directly. In most cases, ant bait and targeted treatments work better than surface sprays because worker ants carry the material back to the nest and help reach the entire colony and kill ants at the source instead of just reducing activity. This works great because it targets the colony instead of just the ants you see.
A lot of products are designed to kill ants on contact, and that can help for the moment. But if the queen and nest are still active, the infestation usually continues. This is why ant bait is used more than spraying, since it works with how ants behave instead of just killing insects on contact, which often leads to more spraying without solving the problem.
In some cases, ants may be nesting inside separation wall spaces, which makes it harder to reach the colony without targeted treatment.