Two-layer structured Zn–Al–Mg coatings were prepared by hot dipping method.
Mg exists in the outer layer while Al exists in the inner layer of Zn–Al–Mg coating.
Zn–Al–Mg coating has better protective ability than Zn and Zn–Al coatings.
The Mg-modified simonkolleite is the reason of the enhanced corrosion resistance.