Our intestinal microbiota harbors a diverse microbial community, often containing opportunistic bacteria with virulence potential. However, mutualistic host-microbial interactions prevent disease by opportunistic pathogens through poorly understood mechanisms. We show that the epithelial interleukin-22 receptor IL-22RA1 protects against lethal Citrobacter rodentium infection and chemical-induced colitis by promoting colonization resistance against an intestinal opportunistic bacterium, Enterococcus faecalis. Susceptibility of Il22ra1−/− mice to C. rodentium was associated with preferential expansion and epithelial translocation of pathogenic E. faecalis during severe microbial dysbiosis and was ameloriated with antibiotics active against E. faecalis. RNA sequencing analyses of primary colonic organoids showed that IL-22RA1 signaling promotes intestinal fucosylation via induction of the fucosyltransferase Fut2. Additionally, administration of fucosylated oligosaccharides to C. rodentium-challenged Il22ra1−/− mice attenuated infection and promoted E. faecalis colonization resistance by restoring the diversity of anaerobic commensal symbionts. These results support a model whereby IL-22RA1 enhances host-microbiota mutualism to limit detrimental overcolonization by opportunistic pathogens.