This is a metal stick inside your tank. It sacrifices itself to prevent rust. It’s noble and stinky. If it’s made of magnesium, swap it for an aluminum or powered anode rod. The magnesium version is a bacteria buffet.
Changing it takes about 30 minutes. Watch a YouTube video. It’s like changing a car part, but wetter. Wear gloves. The rod might be covered in slime. Gross, but satisfying.