Inositol-requiring enzyme 1[α] (IRE1[α])-X-box binding protein spliced (XBP1) signaling maintains endoplasmic reticulum (ER) homeostasis while controlling immunometabolic processes. Yet, the physiological consequences of IRE1α-XBP1 activation in leukocytes remain unexplored. We found that induction of prostaglandin-endoperoxide synthase 2 (/Cox-2) and prostaglandin E synthase (/mPGES-1) was compromised in IRE1α-deficient myeloid cells undergoing ER stress or stimulated through pattern recognition receptors. Inducible biosynthesis of prostaglandins, including the pro-algesic mediator prostaglandin E2 (PGE), was decreased in myeloid cells that lack IRE1α or XBP1 but not other ER stress sensors. Functional XBP1 transactivated the human and genes to enable optimal PGE production. Mice that lack IRE1α-XBP1 in leukocytes, or that were treated with IRE1α inhibitors, demonstrated reduced pain behaviors in PGE-dependent models of pain. Thus, IRE1α-XBP1 is a mediator of prostaglandin biosynthesis and a potential target to control pain.