In this study, we define the critical role of the sulfated mucin O-glycans in obesity and intestinal inflammation. Here, MUC5AC is linked to obesity due to melanocortin 4 receptor deficiency.