Earth may have experienced huge swings in the composition of its early atmosphere.