Regular consumption of dietary fiber helps prevent erosion of the intestinal mucus barrier by the gut microbiome, blunting pathogen infection and reducing the incidence of colitis.