Iron articles are painted to prevent them from rusting. When a metal surface is unpainted, it comes into touch with atmospheric oxygen and develops Iron(III) oxide when there is moisture present. However, if the surface is painted, it is protected from moisture and the elements, preventing rusting.