Al-Mg2Si composite has such advantages as low density, high elastic modules, simple manufacture technology and low cost. However, its strength and ductility need to be enhanced. Thus, the alloying element P was added to control the microstructure of Al-Mg2Si alloy and furthermore improve the mechanical properties of the composite. The experimental results show that the microstructure of the Al-Mg2Si alloys subjected to electromagnetic stirring can be significantly refined and the mechanical properties of the alloy get improved due to the addition of phosphorus. It is found that the best modification effect can be achieved when the adding amount of phosphorus is in the range from 0.7% to 1.1% and the holding time is about 15 minutes, and the mechanical properties of the Al-Mg2Si alloys get markedly enhanced.