The invention provides a heat-resistant magnesium alloy, and the compositions in mass percentage of the alloy are: more than or equal to 3 percent and less than or equal to 7 percent of Al, more than or equal to 0.5 percent and less than or equal to 7 percent of Zn more than or equal to 0.5 percent and less than or equal to 2 percent of Ti, more than or equal to 1 percent and less than or equal to 6 percent of Sn, more than or equal to 0.01 percent and less than or equal to 0.1 percent of La, more than or equal to 0.5 percent and less than or equal to 4 percent of Si and more than or equal to 0.05 percent and less than or equal to 0.6 percent of Zr and the balance being manganese. The heat-resistant magnesium alloy uses only such normal non-precious rare elements as Al, Zn, Ti, Sn, La, Si and Zr, has low cost and keeps good heat-resistant property without adding the elements; and the plastic deformation rate of the alloy is 0.2 to 0.35 percent at the temperature of 250 DEG C and under the stress of 30Mpa, and the alloy can be widely applied in the working environment of high temperature. The heat-resistant magnesium-based porous composite material consists of heat-resistant magnesium alloy and a minimum-density heat-resistant inorganic porous material, has heat-resistant function and good damping property below the temperature of 250 DEG C, can be widely applied to the heat-resistant vibration-absorption parts and components of rapid machinery like an automobile, and has the advantages of good vibration-absorption, sound insulation and voice confusion. The composite material is simple in preparation process and low in production cost.