Bacteria oxygenated the atmosphere, but tectonics fed the bacteria. Karen Hopkin reports