B3GNT7 regulates mucin glycosylation and protects against colitis and infection. Here, MUC5AC is linked to colitis.