A baby's gut is home to trillions of tiny bacteria, and for years scientists have known that breast milk helps shape this microbial community. Now, researchers in Copenhagen have discovered something remarkable: the benefits of breast milk extend far beyond the breastfeeding stage itself.

A team from the Technical University of Denmark (DTU) and Rigshospitalet found that special sugars in breast milk — called human milk oligosaccharides, or HMOs — continue to influence which gut bacteria thrive even after babies start eating solid foods. Their study, published in the journal Nature Communications, reveals a previously unknown mechanism that gives certain bacteria a head start during the weaning phase, when infants transition from milk to solid food.

The researchers analyzed changes in gut bacteria and their genetic activity as babies made this transition. They also grew bacteria in laboratory conditions that mimicked the human gut to identify which microbes could digest both HMOs from breast milk and fibers from plant-based foods. What they found was striking: certain gut bacteria are uniquely equipped to process both sources of nutrition, giving them an advantage over other bacteria competing for space in the digestive system.

"What is new is that we can now explain how the sugars in breast milk, HMOs, also help to select the bacterial communities associated with a healthy gut microbiota later in life," said Maher Abou Hachem, a professor at DTU Bioengineering and senior author of the study. "This underlines the importance of combining breastfeeding with solid baby food at this stage of a child's development."

The findings suggest that the weaning period acts as a crucial developmental window. During this time, the combination of breast milk and solid food appears to help the gut microbiota mature into an adult-like community — one that may persist throughout life.

For clinicians, the research offers new validation for breastfeeding recommendations. Lise Aunsholt, a consultant in the Department of Intensive Care for Newborns and Young Children at Rigshospitalet, said the results strengthen the case for supporting mothers' milk production, especially for premature or critically ill infants in neonatal intensive care units. "It is encouraging to know that when we advise a mother to continue breastfeeding after discharge — and for as long as possible during the transition to solid foods — this will potentially have a positive impact on the child for the rest of their life," she said.

Looking ahead, the researchers believe this knowledge could lead to better nutritional solutions for infants and new ways to support the development of healthy gut bacteria early in life. The study also raises the possibility that the weaning period might be an important time for preventive health measures against diseases linked to gut bacteria imbalances later in life.