Some compounds can act as either oxidizing agents or reducing agents. One example is hydrogen gas, which acts as an oxidizing agent when it combines with metals and as a reducing agent when it reacts with nonmetals. Another example is hydrogen peroxide, in which the oxygen atom is in the -1 oxidation state.