Variation in ATG16L1, a protein involved in autophagy, confers risk for Crohn’s disease, but mice with hypomorphic ATG16L1 activity do not develop spontaneous intestinal inflammation; this study shows that autophagy compensates for endoplasmic reticulum stress — common in inflammatory bowel disease epithelium — specifically in Paneth cells, with Crohn’s-disease-like inflammation of the ileum originating from this cell type when both pathways are compromised. Variations in ATG16L1 — a protein involved in autophagy — are risk factors for Crohn's disease, but although mice homozygous for a common ATG16L1 risk allele show abnormal Paneth cell function, they do not develop intestinal inflammation as might be expected. Richard Blumberg and colleagues show that impairment of either autophagy or the unfolded protein response within Paneth cells results in each other's compensatory engagement, but that colitis develops only when both pathways are impaired. This work highlights pharmacological augmentation of autophagy as a possible therapeutic approach to controlling intestinal inflammation. The recognition of autophagy related 16-like 1 (ATG16L1) as a genetic risk factor has exposed the critical role of autophagy in Crohn’s disease1. Homozygosity for the highly prevalent ATG16L1 risk allele, or murine hypomorphic (HM) activity, causes Paneth cell dysfunction2,3. As Atg16l1HM mice do not develop spontaneous intestinal inflammation, the mechanism(s) by which ATG16L1 contributes to disease remains obscure. Deletion of the unfolded protein response (UPR) transcription factor X-box binding protein-1 (Xbp1) in intestinal epithelial cells, the human orthologue of which harbours rare inflammatory bowel disease risk variants, results in endoplasmic reticulum (ER) stress, Paneth cell impairment and spontaneous enteritis4. Unresolved ER stress is a common feature of inflammatory bowel disease epithelium4,5, and several genetic risk factors of Crohn’s disease affect Paneth cells2,4,6,7,8,9. Here we show that impairment in either UPR (Xbp1ΔIEC) or autophagy function (Atg16l1ΔIEC or Atg7ΔIEC) in intestinal epithelial cells results in each other’s compensatory engagement, and severe spontaneous Crohn’s-disease-like transmural ileitis if both mechanisms are compromised. Xbp1ΔIEC mice show autophagosome formation in hypomorphic Paneth cells, which is linked to ER stress via protein kinase RNA-like endoplasmic reticulum kinase (PERK), elongation initiation factor 2α (eIF2α) and activating transcription factor 4 (ATF4). Ileitis is dependent on commensal microbiota and derives from increased intestinal epithelial cell death, inositol requiring enzyme 1α (IRE1α)-regulated NF-κB activation and tumour-necrosis factor signalling, which are synergistically increased when autophagy is deficient. ATG16L1 restrains IRE1α activity, and augmentation of autophagy in intestinal epithelial cells ameliorates ER stress-induced intestinal inflammation and eases NF-κB overactivation and intestinal epithelial cell death. ER stress, autophagy induction and spontaneous ileitis emerge from Paneth-cell-specific deletion of Xbp1. Genetically and environmentally controlled UPR function within Paneth cells may therefore set the threshold for the development of intestinal inflammation upon hypomorphic ATG16L1 function and implicate ileal Crohn’s disease as a specific disorder of Paneth cells.