Inhaled oxygen, although commonly administered to patients with respiratory disease, causes severe lung injury in animals and is associated with poor clinical outcomes in humans.The relationship between hyperoxia, lung and gut microbiota, and lung injury is unknown.Here, we show that hyperoxia conferred a selective relative growth advantage on oxygen-tolerant respiratory