Rusting is the corrosion of iron or steel due to exposure to oxygen and moisture in the air, resulting in the formation of iron oxide (Fe2O3 or Fe3O4), which is an example of an acidic oxide.