The epigenome is sensitive to metabolic inputs and is crucial for aging. Lysosomes act as a signaling hub to sense metabolic cues and regulate longevity. We found that lysosomal metabolic pathways signal through the epigenome to regulate transgenerational longevity in Caenorhabditis elegans. Activation of lysosomal lipid signaling and lysosomal adenosine monophosphate-activated protein kinase (AMPK) or reduction of lysosomal mechanistic target of rapamycin (mTOR) signaling increased the expression of a histone H3.3 variant and increased its methylation on K79, leading to life-span extension across multiple generations. This transgenerational prolongevity effect required intestine-to-germline transportation of histone H3.3 and a germline-specific H3K79 methyltransferase and was recapitulated by overexpressing H3.3 or the H3K79 methyltransferase. Thus, signals from a lysosome affect the epigenome and link the soma and germ line to mediate transgenerational inheritance of longevity.