In another post, we were talking about what happens to spiders and their webs when scientists give them a little bit of marijuana and other drugs. While researching that post, I learned that it's not just humans that alter spiders’ behavior with chemicals. There’s a wasp in Costa Rica that does the same thing, in a more gruesome and sinister way, as part of its journey to adulthood.

The tropical wasp species Hymenoepimecis argyraphaga is a parasite, and it takes advantage of an unlikely host. The web of the orb weaver spider Plesiometa argyra is normally a place where bugs meet their untimely death and become spider snacks. Using an arsenal of toxins and mind-altering chemicals, though, H. argyraphaga is able to turn the spider into a slave and a meal, and its web into a safe haven.

When the female wasp is ready to lay her egg, she seeks out a spider to help raise her child. She stings the spider to paralyze it and then lays an egg on its abdomen. Soon, the egg hatches and the larva that emerges remains attached to the spider, living on its abdomen and sucking hemolymph (kind of the arthropod version of blood) from its body for nourishment. After a few weeks like this, during which the spider goes about its life as normal, the wasp larva is ready to move on to the next stage of its life cycle. To do this, it needs to make a cocoon. A spider’s web is a decent place to build one, but not perfect. It’s suspended above the ground and the sticky threads provide defense from predators that might eat the wasp, but it’s far too flimsy to support the heavy cocoon and the adult wasp that will come out of it.

The wasp gets around this problem by forcing the spider to build a web that suits its needs. It injects a chemical (which hasn’t been identified yet) into the spider that alters the host’s behavior. The spider begins building its web as normal, but instead of completing all the steps and getting a carefully-patterned web, the zombified spider simply repeats the first few steps over and over again, resulting in a web that’s just a few heavily-reinforced anchor threads and a small center section.

Once the web is done, the spider crawls to the center of the web and sits there complacently. The larva molts, kills the only companion it has ever known, sucks any remaining useful bits out from its corpse, and discards it. Then, it builds its cocoon on a web custom-built for the job. A few weeks later, the adult wasp emerges and flies away, and the cycle starts over.

For more on parasitic wasps, see any of Carl Zimmer’s paeans to the Emerald Cockroach Wasp.