Among many factors that affect the corrosion performance of magnesium alloy, its microstructure is an important factor. Rapid solidification aluminum alloy powder must be solidified and formed before it can be used as a finished product or a component. Therefore, its forming process is very important. It is required to maintain the microstructure characteristics of the rapidly solidified alloy in the hot forming process and avoid coarse microstructure, dilution of supersaturated solid solution and coarsening of precipitated phase caused by remelting and recrystallization. In this paper, the effects of extrusion temperature and extrusion speed on the microstructure and mechanical properties of several alloys are deeply studied, and the relationship between extrusion process and microstructure and mechanical properties of alloys is established. Based on life cycle assessment, mechanical alloying, hot extrusion, rapid solidification and other methods are used to refine the structure of the alloy, and Mg2Si phase is generated in-situ in the alloy to improve the properties of magnesium alloy AZ31B, which has achieved certain results.