EZH2 restricts Tcf7 DNA methylation and promotes TFH differentiation during acute viral infection. Here, EZH2 is linked to viral infectious disease.