To model how interactions among enteropathogens and gut microbial community members contribute to undernutrition, we colonized gnotobiotic mice fed representative Bangladeshi diets with sequenced bacterial strains cultured from the fecal microbiota of two 24-month-old Bangladeshi children: one healthy, the other underweight. The undernourished donor’s bacterial collection contained an enterotoxigenic Bacteroides fragilis strain (ETBF), whereas the healthy donor’s bacterial collection contained two nontoxigenic strains of B. fragilis (NTBF). Analyses of mice harboring either the unmanipulated culture collections or systematically manipulated versions revealed that ETBF was causally related to weight loss in the context of its native community, but not when introduced into the healthy donor’s community. This phenotype was transmissible from the dams their offspring and was associated with derangements in host energy metabolism manifest by impaired tricarboxylic acid cycle activity and decreased acyl-CoA utilization. NTBF reduced ETBF’s expression of its enterotoxin and mitigated the effects of ETBF on the transcriptomes of other healthy donor community members. These results illustrate how intraspecific (ETBF-NTBF) and interspecific interactions impact the effects of harboring B. fragilis..