Apart from the stings when they bite you for disturning them, ants farm aphids by carrying them to your juicy crops and defending them from predators so the ants can get all that sticky, nutritious honeydew they excrete. In addition, they make underground nests which, if in the roots of your plants, mean their root sytem is in air rather than soil and they suffer drought and malnutrition. I nearly lost a large rhubarb crown this way.
You can deal with them in one of two safe ways:-
Kill them by placing little shoe polish size tins of ant poison across their path so they take it home to the nest.
Encourage them to move elsewhere by pouring a solution of 10litres of water mixed with a whole bottle of essential oil of cloves (pharmacies and health stores). They don't like the smell and move away.
You can also expose their nests so that birds come and eat the ant eggs but be careful to do this at arm's length or you'll be badly bitten.