Collectively, these findings indicate that sorafenib induces HCC ER stress via the IRE1α-XBP1 cascade through AGR2 regulation. Here, XBP1 is linked to hepatocellular carcinoma.