When iron is exposed to moist air, it gradually rusts. This is due to the…