A functional mucus layer is a key requirement for gastrointestinal health as it serves as a barrier against bacterial invasion and subsequent inflammation. Recent findings suggest that mucus composition may pose an important selection pressure on the gut microbiota and that altered mucus thickness or properties such as glycosylation lead to intestinal inflammation dependent on bacteria. Here we used TM-IEC C1galt (-/-) mice, which carry an inducible deficiency of core 1-derived O-glycans in intestinal epithelial cells, to investigate the effects of mucus glycosylation on susceptibility to intestinal inflammation, gut microbial ecology and host physiology. We found that TM-IEC C1galt (-/-) mice did not develop spontaneous colitis, but they were more susceptible to dextran sodium sulphate-induced colitis. Furthermore, loss of core 1-derived O-glycans induced inverse shifts in the abundance of the phyla Bacteroidetes and Firmicutes. We also found that mucus glycosylation impacts intestinal architecture as TM-IEC C1galt(-/-) mice had an elongated gastrointestinal tract with deeper ileal crypts, a small increase in the number of proliferative epithelial cells and thicker circular muscle layers in both the ileum and colon. Alterations in the length of the gastrointestinal tract were partly dependent on the microbiota. Thus, the mucus layer plays a role in the regulation of gut microbiota composition, balancing intestinal inflammation, and affects gut architecture.