Loss of electrons, as when a metal goes from the metallic state to the corroded state.