joseph, glad to hear the ants did their thing and left. They really aren't a problem in the garden. That's where they are supposed to be. They are a problem inside, but they are the Earth's clean-up crew outside.
Why they were there is an important thing to observe. You may have just made their nest difficult to access or too hot with all the mulch, so they were moving.
If ants are farming aphids, then the reason the aphids are there is the problem, not the ants.
And if ants are in a
compost pile, it means the pile is too dry and not getting hot enough to actually be a compost pile.

Mediterranean climate, hugel trenches, fabulous clay soil high in nutrients, self-watering containers with hugel layers, keyhole composting with low hugel raised beds, thick Back to Eden Wood chips mulch (distinguished from Bark chips), using as many native plants as possible....all drought tolerant.