You can protect a boat exterior by attaching an anode. The water becomes the electrolyte in the chemical reaction and any portion of the boat submerged in water will receive what we call "Cathodic protection".