The IRE1α-XBP1 arm of the unfolded protein response (UPR) has been associated with immunosuppression and cancer progression. 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.