The invention discloses a material for magnesium alloy doors and windows. The material for the magnesium alloy doors and windows is composed of Mg, Al, Mn, Zn, Cu, Ni, Sc, P, Zr, Y, Ca, Sr, B, Co and a rare earth element, wherein the rare earth element is composed of Ce, Nd, Gd, Pr, Dy, Yb, La and Sm; the invention further discloses a production method of the material for the magnesium alloy doors and windows, and the method comprises the following steps: smelting, heat treatment, forging, quenching and tempering heat treatment, cooling, checking and storing, the production method is simple and easy, the manufacturing cost is low, and the produced material for the magnesium alloy doors and windows is excellent in corrosion resistance, can resist high temperature, is solderable, and has a prolonged service life.