Galvanic corrosion occurs when two disimilar metals are brought into contact with an electrolyte. Remember in highschool physics class when the teacher took a strip of copper and a strip of zinc an stuck them in a lemon then put a voltmeter on them? A simple cell. In order for the current to flow one metal (the less noble anode) would give up its electrons to the (more noble metal cathode)metal. The anode would eventually disintigrate (corrode). Systems to prevent this are called “cathodic protection systems” and can be in impressed current (opposite and equal to the charge created) or sacraficial (anodes) which are designed to waste away (sacraficing themselvs) in favor of the structural metal.
It’s a good science experiment for those rainy afternoons with the kids stuck in the house. You can light a small LED with a lemon for a weekend.