Here, we report that Atg7 deficiency in intestinal epithelial cells shapes the intestinal microbiota leading to an associated limitation of colitis induced by Citrobacter rodentium infection. Here, ATG7 is linked to colitis.