Why do we apply paint on iron articles?

Corrosion of iron articles can be prevented or minimized by shielding the metal surface from oxygen and moisture. It can be prevented by applying paint on the article.