Owing to the nonuniform wall thickness and complex internal structure,the measurement of the residual stress on magnesium alloy cabin castings is complex and difficult extremely,and thus seldom research has focused on the residual stress of magnesium alloy castings. In this paper,the blind-hole method,the X-ray diffraction (XRD)method,and the contour method are used to conduct comprehensive and systematic residual stress tests for a magnesium alloy cabin casting. The results show that the residual stress on the surface of the casting obtained by the blind-hole method is between ?20.03 MPa and ?71.03 MPa,the residual stress obtained by the XRD method is between?26.01 MPa and?87.11 MPa,while the residual stress obtained by the contour method is between ?45.89 MPa and 76.87 MPa. The study can lay a basis for the subsequent research of magnesium alloy cabin castings,and provide a reference for the residual stress test of magnesium alloy castings.