Aluminum has great application in the machinery, transportation, aviation and military and other fields, because of its light weight, rich in resources, good comprehensive properties. Structure determines the properties, in order to obtain good properties, the key is to get the fine and uniform equiaxed grain. In order to obtain the high quality aluminum alloy of fine and uniform equiaxed grain, we must control the growth of grain in the casting process. This paper mainly discusses the effect of magnesium doped on microstructure and properties of aluminum alloy under ultrasonic vibration. Adding Mg of different content for 1wt%, 3wt%, 5wt%, 7wt%, 9wt%, 15wt% in pure aluminum, respectively, then solidifying under ultrasonic vibration. The effect of different solute content on the microstructure of aluminum alloy under ultrasonic vibration is studied. The result shows that aluminum alloy containing 9wt.% magnesium can achieve the best effect of grain refinement under ultrasonic vibration.