Certain ants are soldiers, and others are farmers; leaf cutter ants famously haul large chunks of plant material to their colony, upon which they grow a fungus they like to eat. Then there's the Allomerus decemarticulatus, which are both.
Allomerus ants cultivate a fungus as well, but not to eat. Instead, they take plant hairs and other materials and use the fungus as an adhesive to build a trap on a tree limb. The structure contains small holes where the ants lie in wait, invisible. When a larger insect flies into the trap, they burst forth and ambush the prey, killing it with repeated stings before they carve it up and carry it away.