Many species of poison dart frogs derive their toxic compounds from ingesting mites! Even crazier, some molluscs like the Blue Angel sea slug (glaucus atlanticus) can ingest and weaponize the nematocysts from siphonophores like the Portuguese Man O’ War. Nature be crazy
Then … how do ants become poisonous?
I mean, it’s gonna depend on the specific ant species. Some ants don’t sting at all. Some ants only have formic acid. Some ants’ venom tickles. Some ant venom can kill you.
But to quote Wikipedia for one of the latter, the Jack Jumper ant:
The retractable sting is located in their abdomen, attached to a single venom gland connected by the venom sac, which is where the venom is accumulated. Exocrine glands are known in jack jumpers, which produce the venom compounds later used to inject into their victims.
It then goes on to list all kinds of those compounds: https://en.wikipedia.org/wiki/Jack_jumper_ant#Venom
I don’t have much deeper knowledge than that, but at that point, it might as well be a mixture of some compounds that they ingest and some that they produce from simpler compounds. At the very least, they would need to ingest appropriate atoms/molecules in some form, like for example nitrogen, which is contained in relatively many of those compounds.
They eat even tinier frogs.
Thanks, ants.
Thants.
Look around you! Just look around you!