Some wasps and frogs evolved similar chemicals that cause pain in predators, even though the species are not closely related.