The deterioration of metal or other substances by chemical or electrochemical reaction resulting from exposure to weathering, moisture, chemicals, or other agents, causing the metal to change from a metallic state into a chemically more stable mineral compound known as a corrosion product.