The faecal microbiota differs greatly between infants born at term and those born prematurely during early life, yet it converges over time. Despite this, early clinical factors remain significantly associated with the abundance of some bacterial groups at 2 years of age. Given the associations made between health conditions and the microbiota, factors that alter the makeup of the gut microbiota, and potentially its trajectory through life, could have important lifelong consequences.