Prevent

How painting prevents rusting?
How does painting prevent iron objects from rusting? Rusting takes place in the presence of both air and water. Thus, when a layer of paint is applied...