Galvanizing protects from rust in a number of ways: It forms a barrier that prevents corrosive substances from reaching the underlying steel or iron. The zinc serves as a sacrificial anode so that even if the coating is scratched, the exposed steel will still be protected by the remaining zinc.