Adoptive T cell therapy (ACT) has emerged as an exciting approach for combating cancer. Although ACT has shown remarkable clinical efficacy in hematological malignancies, its success in combating solid tumours has been limited. Here we report that PTPN2 deletion in T cells enhances cancer immunosurveillance and the efficacy of adoptively transferred tumour-specific T cells. PTPN2-deficient T cells markedly repressed tumour formation in mice bearing mammary tumours or melanomas. The repression of tumour growth was accompanied by increased tumour T cell infiltration and decreased T cell exhaustion. Moreover, PTPN2 deletion/knock-down/inhibition in T cells expressing a chimeric antigen receptor (CAR) specific for the oncoprotein HER2 increased CAR T-cell homing and activation and eradicated HER2-expressing syngeneic tumours in vivo, whereas PTPN2 inhibition increased the cytotoxic potential of human CAR T cells ex vivo. Our findings define PTPN2 as a target for bolstering T-cell mediated anti-tumour immunity and CAR T cell therapy and point towards a novel approach for enhancing the efficacy of ACT in otherwise recalcitrant solid tumours.