Ants are largely overlooked by gardeners despite being the most common insect (by number). Part of the reason gardeners don't appreciate ants is likely because they are generalist foragers. So it doesn't matter a whole lot what plants are growing in a garden, native or non; if you have soil and dead wood, chances are ants live in your yard.
I have a Hackberry sapling that's about as tall as me right now. My dream is to someday see some Hackberry Emperors using it as a host plant. Every year though I got out there and find ants (Lasius alienus, Camponotus pennsylvanicus, C. chromaiodes, C. nearcticus, C. subarbatus, Temnothorax curvispinosus and Nylanderia faisonensis) foraging on the tree. They're mostly doing what's called nectar scraping where they wonder the plant licking and scraping the surface of the leaves to collect the small amounts of sweet sap that bleeds out of the leaves with the changing temperature of the day. The foraging power of 1 ant colony is enough to put a dent in the number of Lepidoptera eggs on a sapling; this one has 7 different species and likely multiple colonies of each constantly foraging on it, so I won't likely be seeing any Hackberry Emperors for several years.
My favorite thing ants do in the garden is called Myrmecochory, or ant plant seed dispersal. Even here though ants can be considered annoying. Let's say you paid $20 for a rare Trillium species, looking to start a clump of them over the next decade, which is how long many Trilliums take to flower from seed. Often though Trillium seeds have the annoying habit of walking away from the plant thanks to packets of "Elaiosome," a lipid rich substance on the seed, attracting ants to come and carry them home.
Note how the leaves to the plants photoed above are singed at the tips. If you don't water your plants, they will fry right up and abort the seedpod entirely. You can plant Trilliums in full sun and they'll grow happily but probably won't produce seeds because of how much sun they get. You can compensate for this by adding water but there's only so much watering can do. It's best to plant them in the shade with a small amount of mulch and a low ground cover growing underneath such as Hepatica or Stone Crop. I like to water the roots to mine basically every time I walk past with the hose, or once every other day. Just put the water to the stem and count to 10 for each plant. Even doing this though won't guarantee success. Note the plant to the left didn't bother producing a seedpod at all. Of 9 plants only 2 didn't make seedpods, lack of pollination is likely the issue. Some that did make seedpods made smaller than average ones.
The ideal ant genus to be doing this seems to be Aphaenogaster which form abundant colonies of ~2000 ants throughout woodland settings. They're also very much in the habit of changing their nest location, so as the colonies move around they leave seed banks behind where plants like Trilliums tend to grow. There used to be a colony of Aphaenogaster rudis under this stepping stone which is why I picked it, sadly it seems the colony has moved on.