The invention discloses rigid polyurethane foam plastic with a constant temperature function. The rigid polyurethane foam plastic is prepared from the following components in parts by weight: 70-90 parts of polyisocyanate, 50-80 parts by weight of a polyol, 4-10 parts by weight of a foaming agent, 0.5-1 part by weight of a catalyst, 1-5 parts by weight of an opening agent, 1-2 parts by weight of afoam stabilizer, 1-2 parts by weight of a cross-linking agent, 1-3 parts by weight of an outer foaming agent, 5-10 parts by weight of a phase change heat storage material, and 3-7 parts by weight ofexpanded graphite. According to the rigid polyurethane foam plastic and the preparation method thereof, the flame retardant property of the rigid polyurethane foam plastic can be remarkably improved,the rigid polyurethane foam plastic still has good mechanical properties at low density, meanwhile, the rigid polyurethane foam plastic has heat preservation and temperature adjustment functions, andthe usability of the rigid polyurethane foam plastic in the field of building materials is greatly improved.