Health and wellbeing are challenged constantly by pathogens. A number of defence mechanisms exist to protect the body from pathogen colonisation and invasion, with an important role to play for the natural intestinal bacterial flora (mainly by bifidobacteria and lactobacilli). The present paper reviews the evidence on the effects of inulin and oligofructose on colonisation and translocation of pathogens and the prevention of intestinal diseases. In vitro experiments have shown that lactic acid-producing bacteria have antagonistic (antibacterial) activity against pathogens partly because of the production of organic acids which are the endproducts of inulin and oligofructose fermentation. In addition, studies with epithelial layers have shown that inulin and oligofructose inhibit pathogen colonisation and that endproducts of their fermentation have the ability to support barrier function. Furthermore, studies in various animal models have shown that inulin and oligofructose accelerate the recovery of beneficial bacteria, slow down pathogen growth, decreasing pathogen colonisation and systemic translocation. Finally, data from human intervention trials either in patients with intestinal disorders or disease, or prone to critical illness, found that inulin and oligofructose restore the balance when the gut microbial community is altered, inhibit the progression of disease or prevent it from relapsing and/or developing. To conclude, the dietary use of inulin and oligofructose offers a promising approach to restore microbial communities and to support barrier function of the epithelia by their prebiotic action. This may offer the host protection against invasion and translocation of pathogens (endogenous and/or exogenous) and in the prevention of gastrointestinal diseases.