Galvanic anode

Detailed view of a galvanic anode on the hull of a ship
The bright rectangular objects on these ship components are galvanic anodes.

A galvanic anode, or sacrificial anode, is the main component of a galvanic cathodic protection system used to protect buried or submerged metal structures from corrosion.

They are made from a metal alloy with a more "active" voltage (more negative reduction potential / more positive oxidation potential) than the metal of the structure. The difference in potential between the two metals means that the galvanic anode corrodes, in effect being "sacrificed" in order to protect the structure.