Anode rods prevent corrosion from occurring inside water heater tanks. These sacrificial rods attract sediment and corrosive elements found within tank.