Sterilizing pathogens are common, yet studies focused on how such pathogens respond adaptively to fecundity reductions caused in their hosts are rare. Here we assume that the infected hosts, as a result of redistributing energy resources saved by reduced fecundity, have increased longevity and focus on exploring the consequences of such a fecundity-longevity trade-off on sterility virulence evolution in the pathogens. We find that the trade-off itself cannot prevent the evolution of full sterilization. Therefore, we allow for vertical transmission and reveal that the fecundity-longevity trade-off strongly determines the threshold efficiency of vertical transmission above which partial host sterilization evolves. Partial sterilization may appear as an intermediate level of sterility virulence or as a stable dimorphism at which avirulent and highly virulent strains coexist. The fecundity-longevity trade-off significantly contributes to determining the actual outcome, in many cases countering predictions made in the absence of this trade-off. It is known that in well-mixed populations, partial sterilization may evolve in pathogens under a combination of horizontal and vertical transmission. Our study highlights that this is independent of the form of horizontal transmission and the type of density dependence in host demography and that the fecundity-longevity trade-off is an important player in sterility virulence evolution.