Some fly species in the Peruvian Amazon have found a way of killing parasitic wasp eggs once they are inserted into their bodies. The fly itself does not survive as the wasp must immobilise it before laying its eggs. However, this means that the wasp is more careful about which fly species they choose to attack as their genes will not survive if their eggs die.
First, a wasp lays her eggs in a fly, usually after paralyzing it. Once the larvae hatch inside the host, they typically feed upon the living tissue. However, scientists believe a few species of topical fly have developed immune systems that kill off the larvae of certain species of wasp. Forbes and Condon examined the intricate ecosystem this creates, whereby different species of parasitic wasps must hunt for specific species of fly in which their larvae might survive. They found that these interactions have led to increased biodiversity in both parties.