Batf2−/− mice spontaneously developed colitis and ileitis with altered microbiota composition. Here, BATF2 is linked to Crohn ileitis.