A shape-stabilized composite phase change material comprising PEG and porous carbon was prepared by absorbing PEG into porous carbon.