Adoptive immunotherapy is a potentially curative therapeutic approach for patients with advanced cancer. However, the in vitro expansion of antitumor T cells prior to infusion inevitably incurs differentiation towards effector T cells and impairs persistence following adoptive transfer. Epigenetic profiles regulate gene expression of key transcription factors over the course of immune cell differentiation, proliferation, and function. Using comprehensive screening of chemical probes with defined epigenetic targets, we found that JQ1, an inhibitor of bromodomain and extra-terminal motif (BET) proteins, maintained CD8+ T cells with functional properties of stem cell–like and central memory T cells. Mechanistically, the BET protein BRD4 directly regulated expression of the transcription factor BATF in CD8+ T cells, which was associated with differentiation of T cells into an effector memory phenotype. JQ1-treated T cells showed enhanced persistence and antitumor effects in murine T cell receptor and chimeric antigen receptor gene therapy models. Furthermore, we found that histone acetyltransferase p300 supported the recruitment of BRD4 to the BATF promoter region, and p300 inhibition similarly augmented antitumor effects of the adoptively transferred T cells. These results demonstrate that targeting the BRD4-p300 signaling cascade supports the generation of superior antitumor T cell grafts for adoptive immunotherapy.