Numerous studies have demonstrated a correlation between alterations in gut microbiota (GM) and levels of body metabolites in ovarian cancer (OC). However, the specific causal relationships underlying these associations remain unclear. This study utilized summary statistics of GM from the MiBioGen consortium, along with an unprecedented dataset comprising 1091 blood metabolites and 309 metabolite ratios from the UK Biobank, in conjunction with OC data from the FinnGen Consortium R9 release. We conducted bidirectional Mendelian randomization (MR) analyses to investigate the causal relationships between GM and OC. Additionally, a two-step MR approach was employed to identify potential mediating metabolites. Our analysis revealed significant associations between 6 specific microbiota taxa and OC. Furthermore, we identified several plasma metabolites that act as mediators of the association between GM and OC. In the two-step MR analysis, we observed a negative correlation between 4-methoxyphenol sulfate and pregnenetriol disulfate levels with OC. The genus Lachnospiraceae UCG008 potentially increases the risk of OC by decreasing 4-methoxyphenol sulfate levels, while the genus Howardella may elevate the risk of OC by reducing pregnenetriol disulfate levels, with mediation proportions of 22.35% and 4.23%, respectively. Additionally, levels of dilinoleoyl-GPE (18:2/18:2) and N-acetylkynurenine (2) were positively correlated with OC. The inhibitory effect of the genus Ruminococcus 1 on OC may be mediated through 1,2-dilinoleoyl-GPE (18:2/18:2) and N-acetylkynurenine (2), with mediation proportions of 10.15% and 11.32%, respectively. Our findings highlight the complex relationship among GM, plasma metabolites, and OC. The identified associations and mediation effects offer valuable insights into potential therapeutic approaches targeting GM for the management of OC.