As the current leaves one metal to travel to the other, it causes metal to come off one surface and be deposited on the other. Electrolysis can also occur when an adjacent structure or boat is injecting DC current into the water. That current goes in one end of your boat and out the other on its way to the destination. This can cause electrolysis even though your boat is not at fault.