Galvanic corrosion occurs when two dissimilar metals are electrically connected in an electrolyte. The more active metal corrodes preferentially as the anode. Three ways to minimize galvanic corrosion are to select metals close together in the galvanic series, insulate contact between dissimilar metals, and apply protective coatings to the more noble metal.