<b><i>Introduction:</i></b> Gut microbiota alterations cause inflammation in patients with ulcerative colitis (UC). Fecal microbiota transplantation (FMT) enables manipulating the microbiota’s composition, but the mechanisms underlying colonization of the posttransplantation microbiota are poorly understood. <b><i>Methods:</i></b> In this open-label, nonrandomized study, the FMT efficacy and changes in the gut microbiota were evaluated in 8 UC patients with mild-to-moderately active endoscopic colonic lesions. Compositional changes in the fecal and mucosal microbiotas between donors and recipients were examined via 16S rRNA-based sequencing. To investigate the effects of oral corticosteroids on microbiota colonization, FMT was performed in germ-free prednisolone (PSL)-administered mice to examine the factors determining colonization. <b><i>Results:</i></b> Four UC patients achieved clinical remission (CR) after FMT, and 3 also achieved endoscopic remission. The fecal microbiotas of the CR patients changed similar to those of the donors after FMT. The mucin-coding gene, <i>MUC2</i>, was less expressed in the colons of the PSL-dependent patients than in the PSL-free patients. In the mice, PSL treatment decreased the fecal mucin production and altered the posttransplantation fecal microbiota composition. Adding either exogenous mucin or the mucin secretagogue, rebamipide, partially alleviated the PSL-induced dysbiosis of the gut microbiota. Administering rebamipide with FMT from healthy donors relieved inflammation in mice with <i>Enterococcus faecium</i>-induced colitis. <b><i>Conclusion:</i></b> Colonic mucin controlled the gut microbiota composition, and oral corticosteroid treatment modified the gut microbiota partly by reducing the colonic mucin.