As greenhouse gases such as CO2 enter the ocean, they react chemically with water molecules to produce carbonic acid. Because the ocean can't hold as many dissolved hydrogen atoms as the air, the excess hydrogen combines with the carbon to produce carbonic acid, lowering the ocean's pH.