“Corrosion” is a general term for the breakdown of bonds among molecules in a material — like the way battery acid can corrode the metal inside a flashlight. A more specific chemical alteration term — and one used to describe what’s happened on Mars — is “oxidation.” Oxidation occurs when atoms and molecules give up their electrons in the presence of free oxygen molecules (O
2), which are strong electron acceptors.
Astronomy magazine subscribers can read the full answer for free. Just make sure you're registered with the website.