Together, these findings demonstrate that Dnmt3a-mediated epigenetic programing is required to enforce T helper lineage commitment and preserve Tfh and Th1-specific functions during the recall response to infection, and reveal novel strategies to improve long-lived adaptive immunity against infectious diseases. Here, DNMT3A is linked to infection.