See if you can identify the praying mantis in the above picture. Though ants generally don't feed on plants, there are exceptions. Acacias are thorny trees that grow in the new world tropics. Other insects that land on the plant, or vertebrates that might try to graze on the leaves, are attacked by the ants. So the plant gains protection, in return for providing the ants with places to live and with food.
Ants are generally predacious.
These ants form huge colonies. This is an example of mutual exploitation or mutualism. Termites are social insects closely related to roaches. Termites have special communities of protozoans living in their guts that help them digest cellulose. One of the things that must happen when a termite egg develops is that it must obtain from others in the colony these specialized protozoans.