Here, the authors demonstrate that inhibition of PTP1B and PTPN2 in tumor cells and T-cells with a small molecule inhibitor represses the growth of immunogenic and cold tumors, and enhances response to anti-PD-1 immunotherapy without promoting immune-related toxicities. Here, PTPN2 is linked to neoplasm.