These acts of sacrifice save the colonies. In 2009, Mayako Kutsukake from the National Institute of Advanced Industrial Science and Technology showed in a study that when she halted the aphids’ repairs by absorbing the plasterers’ bodily fluids with tissue, the galls almost always die. If she carried out the repairs herself with glue, the galls and the colonies within them survived. An open gall is vulnerable to predators and desiccation. “Letting the plants heal the galls naturally takes a long time and is very risky for the aphid colony,” says Takema Fukatsu, who led the study.

Read: How to survive being swallowed by another animal

Back then, Kutsukake and Fukatsu compared the aphids’ repairs to the clotting process that we and other animals use to heal open wounds. Now, after a decade of work, they’ve realized that the analogy is more fitting than they could have imagined.

If an insect is wounded, cells called hemocytes rush to the breach and burst, releasing fats that quickly coagulate into a soft plug. Those bursting cells also release an enzyme called phenoloxidase, which cross-links molecules in the insects’ blood into a hard, reinforced mesh—a scab.

This is almost exactly what happens when the soldier aphids sacrifice themselves at a gall hole. Hemocytes in their bodily fluids rupture, releasing fats that quickly form a plug, which phenoloxidase slowly reinforces. All the components are the same; the soldiers just have a lot more of them. By exaggerating their own immune defenses, they’ve evolved a way of defending their entire colonies. “It’s clotting, just not of the body,” says Nancy Moran from the University of Texas at Austin. “They’re clotting the house that they live in.”

That discovery was hard-won. The aphids can’t be reared in the lab, and in the field, “the gall-repairing soldiers are available only for a few months every year,” Kutsukake says. Her work had to proceed in fits and starts, which is why it took a decade to divine the details of the process.

There are many examples where a colony’s defenses mirror an individual’s: Some ants, for example, will kill infected larvae to stop diseases from spreading, just as their immune systems will destroy infected cells. But Kutsukake’s research “shows that these parallels can even exist at the level of the molecules,” says Sylvia Cremer from the Institute of Science and Technology Austria. In the social aphids, “the same cells and molecules responsible for individual wound healing have been co-opted for colony-level wound healing.”

Many social animals will give up their life to protect their genetically related colony mates—honeybee workers famously die after stinging. But the brand of suicidal altruism where individuals sacrificially rupture themselves has a special name—“autothysis.”

One termite species commits autothysis to release a chemical weapon: When it bursts, blue crystals in its back mingle with chemicals in its salivary glands to create a toxic sludge that kills its opponents. Only older individuals do this; their jaws are too worn to be useful in combat, and, to misquote Neil Young, it’s better to blow up than to fade away.