ABSTRACT The intestine plays a key role in metabolism, nutrient and water absorption, and provides both physical and immunological defense against dietary and luminal antigens. The protective mucus lining in the intestine is a critical component of intestinal barrier function that when compromised, can lead to dysfunctional intestinal barriers that are a defining characteristic of inflammatory bowel disease (IBD), among other intestinal diseases. Here, we define a new role for the flavin-containing monooxygenase family of enzymes in maintaining a healthy intestinal epithelium. In nematodes, we find that Cefmo-2 is necessary and sufficient for proper intestinal barrier function, intestinal actin expression, and is induced by intestinal damage. In mice, we utilize an intestine-specific, inducible knockout model of the prevalent gut Fmo (Fmo5) and find striking phenotypes within two weeks of knockout. These phenotypes include sex-dependent changes in colon epithelial histology, goblet cell localization and maturation factors, and mucus barrier formation. Each of these changes are significantly more severe in female mice, plausibly mirroring differences observed in some types of IBD in humans. Looking further at these phenotypes, we find increased protein folding stress in Fmo5 knockout animals and successfully rescue the severe female phenotype with addition of a chemical ER chaperone. Together, our results identify a new role for Fmo5 in the mammalian intestine and support a key role for Fmo5 in maintenance of ER/protein homeostasis and proper mucus barrier formation.