The anode rod is a piece designed to slow down corrosion and rusting in immersion heaters.
The rod is made of magnesium, which wears out faster than steel.
When water corrodes the magnesium, the anode rod releases electrons into the tank, forming a protective barrier around the tank’s steel thus prolonging its lifespan.