The health benefits of fruit, vegetables and dietary fibre have been promoted for many years. Much of the supporting evidence is circumstantial or even contradictory and mechanisms underlying health benefits of specific foods are poorly understood. Colorectal cancer shows marked geographical differences in incidence, probably linked with diet, and explanations for this require knowledge of the complex interactions between diet, microbiota and the gut epithelium. Dietary fibres can act as prebiotics, encouraging growth of saccharolytic bacteria, but other mechanisms are also important. Some but not all soluble fibres have a ‘contrabiotic’ effect inhibiting bacterial adherence to the epithelium. This is particularly a property of pectins (galacturonans) whereas dietary fructans, previously regarded as beneficial prebiotics, can have a proinflammatory effect mediated via toxic effects of high butyrate concentrations. This also suggests that ulcerative colitis could in part result from potentially toxic faecal butyrate concentrations in the presence of a damaged mucus layer. Epithelial adherence of lectins, either dietary lectins as found in legumes, or bacterial lectins such as the galactose-binding lectin expressed by colon cancer-associated Fusobacterium nucleatum, may also be important and could be inhibitable by specific dietary glycans. Conversely, emulsifiers in processed foods may increase bacterial translocation and alter the microbiota thus promoting inflammation or cancer. Focusing on one condition is of limited value although in developing public health messages and growing evidence for impacts of dietary components on all-cause mortality is gaining more attention. We are only just starting to understand the complex interactions between food, the microbiota and health.