The invention relates to a modified epoxide resin with a shape memory function and a preparation method of the modified epoxide resin, belonging to the technical field of a functional high molecular material. The response temperature of the modified epoxide resin material provided by the invention can be adjusted within the range of 32-60 DEG C, the material can be bent at a large angle of 720 degrees at the temperature more than the thermal response temperature, and the shape fixed rate and recovery rate of the modified epoxide resin reach 100%. The preparation method of the modified epoxide resin comprises the following steps of: firstly, preparing end sulfydryl dihydric alcohol ester; secondly, preparing modified epoxide resin; and thirdly, preparing the modified epoxide resin with the shape memory function. Compared with the existing shape memory material, the modified epoxide resin has the advantages of being simple in preparation technology, capable of meeting a green environment protection requirement, low in thermal response temperature, capable of being adjusted, capable of realizing saturated solidifying, low in solidifying temperature, short in solidifying time, short in thermal response time, large in sample flexible angle, and high in shape recovery rate.