Colorectal cancer (CRC) is a multifactorial disease and the second leading cause of cancer death worldwide. The pathogenesis of colorectal cancer includes genetics, age, chronic inflammation, and lifestyle. Increasing attention has recently been paid to dietary factors. Evidence from epidemiological studies and clinical research suggests that high-fibre diets can significantly reduce the incidence of CRC, whilst the consumption of high-fat diets, high-protein diets, red meat, and processed meat is high-risk factors for tumorigenesis. Fibre is a regulator of intestinal microflora and metabolism and is thus a key dietary component for maintaining intestinal health. Intestinal microbes are closely linked to CRC, with the growth of certain microbiota (such as Fusobacterium nucleatum, Escherichia coli, or Bacteroides fragilis) favouring carcinogenesis, whilst the dominant microbiota population of the intestine, such as Bacteroidetes, Firmicutes, Actinobacteria, and Proteobacteria, have multiple mechanisms of antitumour activity. Various dietary components have direct effects on the types of intestinal microflora: in the Western diet mode (high-fat, high-protein, and red meat), the proportion of conditional pathogens in the intestinal flora increases, the proportion of commensal bacteria decreases, and the occurrence of colorectal cancer is promoted. Conversely, a high-fibre diet can increase the abundance of Firmicutes and reduce the abundance of Bacteroides and consequently increase the concentration of short-chain fatty acids (SCFAs) in the intestine, inhibiting the development of CRC. This article reviews the study of the relationship between diet, intestinal microbes, and the promotion or inhibition of CRC and analyses the relevant molecular mechanisms to provide ideas for the prevention and treatment of CRC.