In the current study, the gut microbiota of patients with and without coronary heart disease was compared and the relationship between gut microbiota distribution, intending to reveal the role of gut microbiota in the coronary atherosclerosis process, was investigated.This study included 50 patients diagnosed with coronary heart disease (CHD) who received conventional coronary angiography or computed tomography angiography and 50 patients with CHD at Changshu No. 2 People's Hospital, Suzhou, China, from May 2020 to January 2021. Trimethylamine N-oxide (TMAO) level was tested and feces were collected, the DNA of the gut microbiota was extracted, and the distribution by 16SrRNA gene sequencing was obtained from the two groups of patients.Plasma TMAO concentrations were significantly higher in patients with CHD (P < 0.001). In the CHD group, 22 patients with multivessel disease had a higher level of TMAO compared with the 28 patients who had the single-vessel disease (P < 0.001). No difference in the gut microbiota diversity was noted between the two groups (P < 0.001). Patients with CHD had a significantly lower proportion of Bacteroidetes phyla and more proportion of Epsilonbacteraeota phyla. At the genus level, patients with CHD had an increased abundance of Enterococcus, whereas healthy controls had significantly higher levels of Streptococcus. Phylogenetic Investigation of Communities by Reconstruction of Unobserved States 2 analysis found that, in the KEGG ORTHOL-OGY, the level of choline trimethylamine-lyase gene expression correlated with TMAO production was higher in the fecal microbiome of the CHD group (P < 0.05).Gut microbiota and its product were expected to become a diagnostic marker and a new target for preventing CHD.