Magnesium-based amorphous alloys have aroused broad interest in being applied in marine use due to their merits of lightweight and high strength. Yet, the poor corrosion resistance to chloride-containing seawater has hindered their practical applications. Herein, we propose a new strategy to improve the chloride corrosion resistance of amorphous Mg65Cu15Ag10Gd10 alloys by engineering atomic-to-nano scale structural homogeneity, which is implemented by heating the material to the critical temperature of the liquid–liquid transition. By using various electrochemical, microscopic, and spectroscopic characterization methods, we reveal that the liquid–liquid transition can rearrange the local structural units in the amorphous structure, slightly decreasing the alloy structure’s homogeneity, accelerate the formation of protective passivation film, and, therefore, increase the corrosion resistance. Our study has demonstrated the strong coupling between an amorphous structure and corrosion behavior, which is available for optimizing corrosion-resistant alloys.