Development of the preterm infant gut microbiota is emerging as a critical research priority1. Since preterm infants almost universally receive early and often extended antibiotic therapy2, it is important to understand how these interventions alter gut microbiota development3–6. Analysis of 401 stools from 84 longitudinally sampled preterm infants demonstrates that meropenem, cefotaxime and ticarcillin–clavulanate are associated with significantly reduced species richness. In contrast, vancomycin and gentamicin, the antibiotics most commonly administered to preterm infants, have non-uniform effects on species richness, but these can be predicted with 85% accuracy based on the relative abundance of only two bacterial species and two antibiotic resistance (AR) genes at treatment initiation. To investigate resistome development, we functionally selected resistance to 16 antibiotics from 21 faecal metagenomic expression libraries. Of the 794 AR genes identified, 79% had not previously been classified as AR genes. Combined with deep shotgun sequencing of all stools, we find that multidrug-resistant members of the genera Escherichia, Klebsiella and Enterobacter, genera commonly associated with nosocomial infections, dominate the preterm infant gut microbiota. AR genes that are enriched following specific antibiotic treatments are generally unique to the specific treatment and are highly correlated with the abundance of a single species. The most notable exceptions include ticarcillin–clavulanate and ampicillin, both of which enrich for a large number of overlapping AR genes, and are correlated with Klebsiella pneumoniae. We find that all antibiotic treatments are associated with widespread collateral microbiome impact by enrichment of AR genes that have no known activity against the specific antibiotic driver. Antibiotic therapy has varying effects on the species richness of the preterm infant gut microbiota, but can lead to a dominance of multi-drug resistant species and an enrichment of antibiotic resistance genes.