Compositions for use in the treatment or prevention of influenza infection are provided, and the compositions contain a 2-fucosylated oligosaccharide, such as 2-fucosyllactose (2FL). The compositions can also include fructooligosaccharides (FOS). Additionally said compositions can be used for improving resistance to an influenza virus, decreasing influenza in the lung, decreasing influenza-induced anorexia, decreasing influenza-induced pulmonary mucin secretion, and decreasing influenza-induced IgG response. They may be used in a infant or a young child.