Ants prefer short grass. It’s easier to tunnel. If you let the grass grow a little taller? They get confused.
It’s like a jungle to them. They hate it. Mess with their real estate, and they pack up.
Skip a mowing. Your lawn looks shaggy. The ants leave. You win.