Our study highlights Yap as a broad suppressor of CD4+ and CD8+ T-cell activation and function and a key regulator of T-cell tumor infiltration and survival in cancer immunotherapy patients. This evidence concerns the gene CD8A and cancer.