In this study, we investigated the effect of aluminium content and precipitation on the corrosion behavior of the AY31 and AZ80 magnesium alloys.