Rusting is a redox reaction. Redox reactions involve the transfer of electrons between reacting species, resulting in one species being oxidized while the other is reduced. In rusting, iron is oxidized by oxygen in the air, forming iron oxide. The iron loses electrons and is oxidized, while the oxygen gains electrons and is reduced.