A growing number of studies have shown that gut microbiota (GM) plays an essential role in the occurrence and development of colorectal cancer (CRC). The current body of research exploring the relationship between CRC and GM is vast. Nevertheless, bibliometric studies in this area have not yet been reported. This study aimed to explore the hotspots and frontiers of research on GM and CRC in the past 20 years, which may provide a reference for researchers in this field. The Web of Science Core Collection database was searched for publications on CRC and GM from 2002 to 2022. The scientometric softwares CiteSpace and VOSviewer were used to visually analyze the countries, institutions, authors, journals, and keywords involved in the literature. Keywords co-occurrence, cluster, and burst analysis were utilized to further explore the current state and development trends of research on GM and CRC. A total of 2158 publications were included in this study, with a noticeably rising annual publication trend. The majority of these papers are from 80 nations, primarily China and the USA. J Yu was the most active author and WS Garrett has the highest citation. Among all institutions, Shanghai Jiao Tong University has the largest number of papers. Most of the publications were published in the International Journal of Molecular Sciences, with Science being the most frequently cited journal. The 4 main clusters mainly involved probiotics, inflammation, molecular mechanisms, and research methods. Current research hotspots included “Fusobacterium nucleatum,” “Escherichia coli,” etc. Newly emerging research has focused predominantly on immune response, gene expression, and recent strategies for the treatment of CRC with GM. The relationship between GM and CRC will continue to be a hot research area. Changes in the composition of GM in patients with CRC, the potential molecular mechanisms as well as probiotics and natural products used in the treatment of CRC have been the focus of current research and hotspots for future studies.