In this study, we established the critical role of the IL-21–BATF pathway in maintaining functional tumor-reactive CD8+ T cells in cancer. The gene discussed is CD8A; the disease is neoplasm.