How to Use understanding galvanic corrosion on boats Effectively

How to use understanding galvanic corrosion on boats effectively I was struggling with mysterious pits on my boat’s hull after a season in saltwater,