Corrosion is the reaction of a material with its environment, which causes a measurable change in the material and can lead to an impairment of the function of a component or the whole system.

Metals or alloys for example corrode owing to oxidation or selective leaching of certain constituents of the material.

The this case, the analysis is typically used to identify the corrosion products and to detect small amounts of foreign substances, which could point out the cause of the corrosion, In addition, the thickness of the resulted oxide layer may be determined.