Our study using a piglet model with early-weaning-induced diarrhea provides evidence for the association of diarrheal disease with colonic microbiome and mucin O-glycan profiles that would not be possible in human infants. Here, MUC5AC is linked to diarrheal disease.