The erosion of the colonic mucus layer by a dietary fiber-deprived gut microbiota results in heightened susceptibility to an attaching and effacing pathogen,Citrobacter rodentium. Nevertheless, the questions of whether and how specific mucolytic bacteria aid in the increased pathogen susceptibility remain unexplored. Here, we leverage a functionally characterized, 14-member synthetic human microbiota in gnotobiotic mice to deduce which bacteria and functions are responsible for the pathogen susceptibility. Using strain dropouts of mucolytic bacteria from the community, we show thatAkkermansia muciniphilarenders the host more vulnerable to the mucosal pathogen during fiber deprivation. However, the presence ofA. muciniphilareduces pathogen load on a fiber-sufficient diet, highlighting the context-dependent beneficial effects of this mucin specialist. The enhanced pathogen susceptibility is not owing to altered host immune or pathogen responses, but is driven by a combination of increased mucus penetrability and altered activities ofA. muciniphilaand other community members. Our study provides novel insights into the mechanisms of how discrete functional responses of the same mucolytic bacterium either resist or enhance enteric pathogen susceptibility.