A galactooligosaccharide composition comprising a mixture of disaccharides, trisaccharides, a tetrasaccharide and a pentasaccharide for use in preventing or treating cognitive dysfunction and/or emotional disturbances in neuropsychiatric illnesses or ageing.