Aluminum-magnesium alloys were prepared from magnesium oxide through molten salt electrolysis method.MgF2-BaF2-LiF was taken as electrolysis,and its density is higher than aluminum liquid,so upload cathode,which was aluminum liquid,was carried through in test.Current efficiency ismore than 80%,the maximum comes up to 87.7%.Some amount of MgO flowed into electrolytic cell every some time.The content of Mg in alloys increases gradually and up to 18.6% with lengthening electrolyzing time.It was revealed that addition of KCl can improve the physical-chemical property.