There is one final way to prevent corrosion. This shows iron nails that have been coated in a layer of zinc. Coating a metal with zinc is called galvanizing, so these are galvanized nails. Firstly, the layer of zinc acts as a barrier against air and water; this prevents the iron from corroding.