Evolutionary loss of traits can result from negative selection on a specific phenotype, or if the trait is selectively neutral, because the phenotype associated with the trait has become redundant. Even essential traits may be lost, however, if the resulting phenotypic deficiencies can be compensated for by the environment or a symbiotic partner. Here we demonstrate that loss of an essential me-tabolic trait in parasitic wasps has evolved through environmental compensation. We tested 24 species for the ability to synthesize lipids de novo and collected additional data from the literature. We found the majority of adult parasitoid species to be incapable of synthesizing lipids, and phylogenetic analyses showed that the evolution of lack of lipogenesis is concurrent with that of parasitism in insects. Exploitive host manipulation, in which the host is forced to synthesize lipids to the benefit of the parasitoid, presumably facilitates loss of lipogenesis through environmental compensation. Lipogenesis re-evolved in a small number of parasitoid species, particularly host generalists. The wide range of host species in which generalists are able to develop may impede effective host manipulation and could have resulted in regaining of lipogenic ability in generalist parasitoids. As trait loss through environmental compensation is unnoticed at the phenotypic level, it may be more common than currently anticipated, especially in species involved in intricate symbiotic relationships with other species.