The animal germline lineage needs to be maintained along generations. However, some Caenorhabditis elegans wild isolates display a mortal germline phenotype, leading to sterility after several generations at 25&#
xb0;C. Using a genome-wide association approach, we detect a significant peak on chromosome III around 5&#
x2009;Mb, confirmed by introgressions. Thus, a seemingly deleterious genotype is maintained at intermediate frequency in the species. Environmental rescue is a likely explanation, and indeed associated bacteria and microsporidia suppress the phenotype of wild isolates as well as mutants in small RNA inheritance (
nrde-2) and histone modifications (
set-2). Escherichia coli strains of the K-12 lineage suppress the phenotype compared to B strains. By shifting a wild strain from E.&#
x2009;coli K-12 to E.&#
x2009;coli B, we find that memory of the suppressing condition is maintained over several generations. Thus, the mortal germline phenotype of wild C.&#
x2009;elegans is in part revealed by laboratory conditions and may represent variation in epigenetic inheritance and environmental interactions. This study also points to the importance of non-genetic memory in the face of environmental variation.