Magnesium and its alloys are more galvanically active than even zinc on the galvanic series. Magnesium will form a strong galvanic cell with every other metal it comes into contact with and is always sacrificial.
When magnesium corrosion is detected, it requires immediate attention or the corrosion will spread throughout the entire structure. Therefore, these alloys must be protected from corrosion damage which, under certain conditions, can proceed rapidly, resulting in irreversible damage.