The four basic elements of a corrosion cell are an anode, a cathode, and the metallic and electrolytic pathways between them. Corrosion control can be achieved by eliminating (or reducing) any of these elements. One such method is to modify the electrolytic pathway by introducing a barrier between the threatened metal surface and the corrosive medium (i.e., by applying some kind of coating).
Full article click Effects of Coating on Corrosion and Cathodic Protection