Mg-Li-Gd alloys were prepared by electrochemical codeposition from LiCl-KCl-MgCl 2 -Gd 2 O 3 melts on molybdenum electrode with constant current density at 823 and 973 K. The microstructure of the Mg-Li-Gd alloys was analyzed by X-ray diffraction (XRD), optical microscopy (OM) and scanning electron microscopy (SEM). The results show that magnesium and gadolinium deposit mainly in the first 30 min, and the alloy obtained contains 96.53% Mg, 0.27% Li and 3.20% Gd (mass fraction). Then, the reduction of lithium ions occurs quickly. The composition of alloy can be adjusted by controlling electrolysis time or Gd 2 O 3 concentration in LiCl-KCl melts. With the addition of Gd into Mg-Li alloys, the corrosion resistance of the alloys is enhanced. XRD results suggest that Mg 3 Gd and Mg 2 Gd can be formed in Mg-Li-Gd alloys. The distribution of Gd element in Mg-Li-Gd alloys indicates that Gd element mainly distributes at the grain boundaries of Mg-Li-Gd alloys.