The subfamily Ripiphorinae parasitise bees and wasps (
Hymenoptera), while Ripidiinae parasitises
cockroaches (
Blattodea) and Pelecotominae parasitises larvae of wood-boring beetles (
Coleoptera). Species that attack bees typically lay their eggs on flowers. There the eggs hatch almost immediately into small
planidial larvae and lie in wait for a visiting host. The planidium mounts the bee and rides it back to the hive. There it dismounts and seeks a cell occupied by a host larva. The planidium then enters the body of the host. It changes its skin and shape, then remains more or less dormant until the host larva pupates. It then emerges from the bee pupa and begins to feed. It eats the entire pupa, then pupates in its turn and completes its
metamorphosis before emerging from the hive to mate and lay eggs. In species that parasitise cockroaches, males are winged while the females are wingless and
larviform. Both sexes of adults cannot feed due to reduced mouthparts. Adult females attract males using
pheromones to mate, then lay eggs on the spot. The eggs hatch into larvae which attack cockroach nymphs. Upon maturity, the ripiphorid larva emerges from its host's last abdominal segments and pupates nearby. In species that attack wood-boring beetles, adults occur on dead trees or on dead parts of living trees. They mate and then the females lay eggs into wood using a long, stiff, needle-shaped
ovipositor. Larvae hatch and actively search for host beetle larvae, able to survive for at least 10 days without finding a host. When a host is found, the ripiphorid larva pierces into it with the help of a narcotising substance it injects. It feeds within the host, then emerges and continues feeding as an ectoparasitoid. When development is complete, the larva acts as a wood-borer itself, creating an emergence gallery and pupating at the apical end of this gallery. == Evolution ==