BackgroundAnorexia nervosa (AN) and bulimia nervosa (BN) poses a significant challenge to global public health. Despite extensive research, conclusive evidence regarding the association between gut microbes and the risk of AN and BN remains elusive. Mendelian randomization (MR) methods offer a promising avenue for elucidating potential causal relationships.Materials and methodsGenome-wide association studies (GWAS) datasets of AN and BN were retrieved from the OpenGWAS database for analysis. Independent single nucleotide polymorphisms closely associated with 196 gut bacterial taxa from the MiBioGen consortium were identified as instrumental variables. MR analysis was conducted utilizing R software, with outlier exclusion performed using the MR-PRESSO method. Causal effect estimation was undertaken employing four methods, including Inverse variance weighted. Sensitivity analysis, heterogeneity analysis, horizontal multivariate analysis, and assessment of causal directionality were carried out to assess the robustness of the findings.ResultsA total of 196 bacterial taxa spanning six taxonomic levels were subjected to analysis. Nine taxa demonstrating potential causal relationships with AN were identified. Among these, five taxa, including Peptostreptococcaceae, were implicated as exerting a causal effect on AN risk, while four taxa, including Gammaproteobacteria, were associated with a reduced risk of AN. Similarly, nine taxa exhibiting potential causal relationships with BN were identified. Of these, six taxa, including Clostridiales, were identified as risk factors for increased BN risk, while three taxa, including Oxalobacteraceae, were deemed protective factors. Lachnospiraceae emerged as a common influence on both AN and BN, albeit with opposing effects. No evidence of heterogeneity or horizontal pleiotropy was detected for significant estimates.ConclusionThrough MR analysis, we revealed the potential causal role of 18 intestinal bacterial taxa in AN and BN, including Lachnospiraceae. It provides new insights into the mechanistic basis and intervention targets of gut microbiota-mediated AN and BN.