A chemical action that causes the gradual deterioration of the surface of a metal by oxidation or chemical reaction.