Here the authors show that IRE1α-XBP1 activation is associated with poor overall survival in patients with non-small cell lung cancer and that IRE1α loss in cancer cells promotes anti-tumor immune responses in lung cancer preclinical models. This evidence concerns the gene XBP1 and non-small cell lung carcinoma.