Using an immunocompetent mouse model of NSCLC, this study demonstrates that tumor-intrinsic response to IFNγ determines response to anti–PD-1 through alterations in the tumor microenvironment. This evidence concerns the gene PDCD1 and non-small cell lung carcinoma.