The virus protects the parasitic larva inside the host by weakening the host’s immune system. It also alters the cells of the host in ways which help the parasite. The polydnavirus, like all viruses, need a host to replicate itself. This it does in the oviducts of the female wasp. 