Nr2f6-deficient memory OT-I CD8+ T cells raise enhanced recall responses and are superior in clearing secondary bacterial infection. Here, NR2F6 is linked to bacterial infectious disease.