AIMS: Gut microbiota are reported to be associated with the incidence and prognosis of Esophageal cancer (EC) but their genetic association is unclear. We carried out a bidirectional MR analysis to assess the causal relationship between EC and gut microbiota from fecal samples. METHODS: The microbiome genome-wide association studies (GWAS) data of 18,340 individuals provided by MiBioGen consortium and the EC GWAS data (740 esophageal cancers cases and 372 016 controls) provided by UK Biobank were respectively utilized as exposure and/or outcome data. Reliable single nucleotide polymorphisms (SNPs) were obtained after rigorous screening. A bidirectional Mendelian randomization (MR) analysis was conducted using the inverse-variance weighted (IVW) method. The sensitivity analyses including the MR-Egger method, weighted median, weighed mode and leave-one-out method were performed to examine the stability, heterogeneity and pleiotropy of the results. RESULTS: Forward MR analysis revealed the increase in abundance of the microbial trait by each standard deviation was associated with a higher risk of EC ( CONCLUSIONS: Our findings supported a bidirectionally causal relationship between gut microbiota and EC, implying the potential role of gut microbiota in preventing the occurrence and development of EC.