Important risk variants in murine models as well as IBD patients impair P cell function, leading to colitis; notably, the autophagy gene ATG16L1 and NOD2 mutations, with disturbed secretory P cells, result in antibacterial autophagy defects. Here, ATG16L1 is linked to colitis.