The invention relates to the technical field of photochemistry synthesis, in particular to a preparation method of photoresponse hydrogel. In the preparation method of the photoresponse hydrogel containing the azo monomers, acrylicester is used as a main component, the use level of the azo monomers is 1-5 percent of the weight of acrylicester, the use level of N,N methylene-bisacrylamide is 5-20 percent of the weight of acrylicester, the use level of Poly(ethylene glycol) diacrylate is 5-20 percent of the weight of acrylicester, and the use level of water is 200-400 percent of the weight of acrylicester. Visible light is adopted for irradiation in the reaction, camphorquinone and the 4-N,N-(dimethylamino)-benzoic acid ethyl ester having the same weight are adopted and account for 0.5-5 percent of the weight of acrylicester, the light intensity of a light source is controlled to be 30-300 mW, and the temperature for preparation is 80 DEG C below zero to 80 DEG C. The preparation method of the photoresponse hydrogel comprises the following steps of: injecting prepared mixture into a transparent and closed die, adjusting the temperature, and irradiating for 2-60 minutes by adopting visible light source.