Fecal MUC2 can be used to investigate structure-function relationships in mucin from IBD patients. Here, MUC2 is linked to inflammatory bowel disease.