There are many different types of bacteria in your digestive tract. There is evidence that some of these - the so-called probiotic species - have a positive effect on immune health.
Prebiotic fibres such as inulin (also known as resistant starch) stimulate the production of probiotic bacteria.