CD8 T cells play a critical role in protection against viral infections. During effector differentiation, CD8 T cells dramatically change chromatin structure and cellular metabolism, but how energy production increases in response to these epigenetic changes is unknown. We found that loss of basic leucine zipper transcription factor, ATF-like (BATF) inhibited effector CD8 T-cell differentiation. At the late effector stage, BATF was induced by IL-12 and required for IL-12–mediated histone acetylation and survival of effector T cells. BATF, together with c-Jun, transcriptionally inhibited expression of the nicotinamide adenine dinucleotide (NAD
+
)-dependent deacetylase Sirt1, resulting in increased histone acetylation of the T-bet locus and increased cellular NAD
+
, which increased ATP production. In turn, high levels of T-bet expression and ATP production promoted effector differentiation and cell survival. These results suggest that BATF promotes effector CD8 T-cell differentiation by regulating both epigenetic remodeling and energy metabolism through Sirt1 expression.