The present invention relates to the use of oligosaccharides derived from arabinoxylan for use in the prevention and treatment of gastrointestinal infection. More particularly the invention provides a method for preventing or reducing the gastrointestinal infection of a animal or human being with bacteria associated with gastroenteritis through the supplementation of their diets with the said oligosaccharides.