BackgroundIn recent decades, the decline of male sperm quality has become a worldwide phenomenon, with sperm quality of critical importance for the ability to conceive naturally. Recent studies suggest that male fertility function is closely linked to the gut microbiota, however, the cause-and-effect association between the gut microbiota and male infertility risk is currently unclear.MethodsWe performed one two-sample Mendelian randomization (MR) study, which uses summary data on human gut microbiota from the MiBioGen consortium as factors of exposure. FinnGen Consortium R8 data was used to obtain GWAS data for male infertility. To evaluate cause-and-effect associations linking gut microbiota and male infertility risk with multiple Mendelian randomization methods, we included inverse variance weighted (IVW), MR-Egger, and Maximum Likelihood (ML) Ratio. The heterogeneity of instrumental variables was evaluated through Cochran's Q, Rucker's Q, and leave-one-out analysis methods.ResultsWe found a positive association between Allisonella, Anaerotruncus, Barnesiella, Intestinibacter, and Lactococcus with male infertility risk according to the MR analysis results. Bacteroides Romboutsia, Ruminococcaceae (NK4A2140group), and Ruminococcaceae (UCG011) play a protective function in male infertility pathogenesis.ConclusionIt was found that gut microbiota and infertility are causally related in this study. In subsequent studies, there is a need to build a larger and more comprehensive GWAS database on male infertility, which will reveal the underlying mechanisms for gut microbiota and male infertility. There is a need for randomized controlled trials for validating the protective effect of the associated gut microbiota against male infertility risk, and for exploring the associated mechanisms.