The invention discloses an inorganic hydrated salt porous carbon composite phase change material and a preparation method thereof, wherein the preparation method comprises the following steps: firstly, preparing biomass-based porous carbon subjected to activation treatment, and weighing an inorganic hydrated salt phase change material, the biomass-based porous carbon and a pore sealing agent in proportion; and then preparing a saturated solution from the inorganic hydrated salt phase change material, adding biomass-based porous carbon, impregnating, carrying out vacuum pressurization and adsorbing; and finally, adding the pore sealing agent, stirring, wind-drying, and grinding and pulverizing, to obtain the inorganic hydrated salt porous carbon composite phase change material. The composite phase change material prepared by the method has the advantages of difficult liquid leakage, no phase separation, small supercooling degree, high phase change enthalpy, no toxicity, no corrosion, good thermal stability, good durability, low preparation cost and the like, and has broad market prospects in the fields of building and energy-storage materials.