Accumulating evidence suggests that the human intestinal microbiota contributes to the aetiology of colorectal cancer (CRC), not only via the pro-carcinogenic activities of specific pathogens but also via the influence of the wider microbial community, particularly its metabolome. Recent data have shown that the short-chain fatty acids acetate, propionate and butyrate function in the suppression of inflammation and cancer, whereas other microbial metabolites, such as secondary bile acids, promote carcinogenesis. In this Review, we discuss the relationship between diet, microbial metabolism and CRC and argue that the cumulative effects of microbial metabolites should be considered in order to better predict and prevent cancer progression.