The invention provides a flame-retardant phase change material, which is prepared from the following raw materials in parts by mass: 1 to 90 parts by weight of polyhydric alcohol, 1 to 90 parts by weight of resin, 1 to 10 parts by weight of solid porous material, 0.1 to 7 parts by weight of flame retardant, 0.1 to 5 parts by weight of heat conduction agent and 0.01 to 2 parts by weight of coupling agent and/or curing agent. The temperature-control heat-conduction phase-change material is obtained by taking polyhydric alcohol and the like as a phase-change agent, taking resin as a support body of the phase-change material, taking a solid porous material as an auxiliary setting agent, combining with a specific heat-conduction agent and a flame retardant, uniformly mixing the phase-change agent, the support body, the auxiliary setting agent, the heat-conduction agent and the flame retardant, and polymerizing or curing. The solid-solid phase change composite material provided by the invention is wide in phase change temperature range, large in phase change latent heat and adjustable in phase change temperature and phase change latent heat, does not need complex use devices and packaging containers with good sealing performance, and is wider in application occasion and lower in system cost.