In this study, we demonstrate that the chromatin remodeling complex PBAF restrains expansion and promotes exhaustion of CD8+ T cells during chronic viral infection and cancer. Here, CD8A is linked to cancer.