The invention provides a heat-sensitive photocatalysis spray gel that is prepared from the following components in parts by weight: 2-4 parts of a photocatalytic material, 0.025-0.05 part of sodium alginate, 5-10 parts of heat-sensitive cellulose and 500-1000 parts of deionized water, wherein the photocatalytic material is chitosan-loaded platinum and iodine co-doped modified titanium dioxide nanopowder; the invention also provides a preparation method, which comprises the following steps: respectively adding sodium alginate and heat-sensitive cellulose into deionized water with the temperature of 80-100 DEG C, uniformly stirring, naturally cooling to room temperature, mixing, adding the photocatalytic material into the mixed solution, mixing, and carrying out ultrasonic dispersion to obtain the heat-sensitive photocatalytic spray gel. According to the invention, the thin film formed after spraying is good in stability and not prone to crystallization, fragmentation and falling off; when recycling is needed, hot water can be used for making contact with the thin film to make the thin film become a hydrogel state, the thin film can be easily and completely recycled from the surfaceof an object, the surface of the object cannot be damaged, and the indoor PM2.5 purification effect is remarkable.