This nested cohort study within a randomised controlled trial assessed the impact of supplemental bovine lactoferrin on the gut microbiome and metabolome of 479 preterm infants born before 32 weeks' gestation. Lactoferrin supplementation had minimal effect on gut microbiome composition, with hospital site and postnatal age explaining far more variation than the intervention.