Colorectal cancer (CRC) is currently the third leading cancer and commonly develops from chronic intestinal inflammation. A strong association was found between gut microbiota and intestinal inflammation and carcinogenic risk. Flavonoids, which are abundant in vegetables and fruits, can inhibit inflammation, regulate gut microbiota, protect gut barrier integrity, and modulate immune cell function, thereby attenuating colitis and preventing carcinogenesis. Upon digestion, about 90% of flavonoids are transported to the colon without being absorbed in the small intestine. This phenomenon increases the abundance of beneficial bacteria and enhances the production of short-chain fatty acids. The gut microbe further metabolizes these flavonoids. Interestingly, some metabolites of flavonoids play crucial roles in anti-inflammation and anti-tumor effects. This review summarizes the modulatory effect of flavonoids on gut microbiota and their metabolism by intestinal microbe under disease conditions, including inflammatory bowel disease, colitis-associated cancer (CAC), and CRC. We focus on dietary flavonoids and microbial interactions in intestinal mucosal barriers as well as intestinal immune cells. Results provide novel insights to better understand the crosstalk between dietary flavonoids and gut microbiota and support the standpoint that dietary flavonoids prevent intestinal inflammation and carcinogenesis.Copyright © 2023. Published by Elsevier Inc.