Breastmilk is seen as the gold standard for infant nutrition as it provides nutrients and compounds that stimulate gut barrier, immune, and brain development to the infant. However, there are many instances where it is not possible for an infant to be fed with breastmilk, especially for the full 6 months recommended by the World Health Organization. In such instances, infant formula is seen as the next best approach. However, infant formulas do not contain human milk oligosaccharides (hMOs), which are uniquely present in human milk as the third most abundant solid component. hMOs have been linked to many health benefits, such as the development of the gut microbiome, the immune system, the intestinal barrier, and a healthy brain. This paper reviews the effects of specific hMOs applied in infant formula on the intestinal barrier, including the not‐often‐recognized intestinal alkaline phosphatase system that prevents inflammation. Additionally, impact on immunity and the current proof for effects in neurocognitive function and the corresponding mechanisms are discussed. Recent studies suggest that hMOs can alter gut microbiota, modulate intestinal immune barrier function, and promote neurocognitive function. The hMOs 2′‐fucosyllactose and lacto‐N‐neotetraose have been found to have positive effects on the development of infants and have been deemed safe for use in formula. However, their use has been limited due to their cost and complexity of synthesis. Thus, although many benefits have been described, complex hMOs and combinations of hMOs with other oligosaccharides are the best approach to stimulate gut barrier, immune, and brain development and for the prevention of disease.