Our data establish a previously unappreciated role of FOXK2 in regulating cancer stemness through fine-tuning the intracellular stress defense mechanism governed by IRE1α/XBP1. Here, ERN1 is linked to cancer.