The invention belongs to the technical field of hydrogel, and particularly relates to a preparation method of magnetic hydrogel. In the preparation process, calcium oxide is taken as a raw material, firstly, the raw material and nanometer titania are heated, then the effect of carbon dioxide is utilized, nano calcium carbonate is formed, and under the effect of an auxiliary agent, the nano calciumcarbonate is continuously combined with the nanometer titania; dispersion performance is added for polyvinylpyrrolidone, then the polyvinylpyrrolidone, ferric chloride and ferrous chloride are mixed,magnetic particles are formed and uniformly distributed on the surfaces of mixed particles at the same time, the crystal form is improved through a guiding agent, and finally, polyacrylamide is formed for wrapping; groups on the surfaces of the particles can be combined with polyacrylamide well, the effect is utilized that the nano calcium carbonate is combined with the nanometer titania, gaps can be formed well for loading the magnetic particles, and by utilizing formation of a nano-substance, the mechanical performance and magnetic performance of the hydrogel can be effectively improved.