The invention relates to ultraviolet-cured silicone rubber for DIW (direct ink writing) 3D (three-dimensional) printing and a preparation method thereof. The ultraviolet-cured silicone rubber is prepared from the following raw materials in percentage by weight: 50-80% of polysiloxane containing unsaturated groups, 1-10% of a sulfydryl-containing cross-linking agent, 0.1-10% of a photoinitiator, 1-10% of rheological modifier, 6-40% of a filler and 5-20% of reinforcing resin. According to the ultraviolet-cured silicone rubber and the preparation method thereof, the polysiloxane containing the unsaturated groups, the sulfydryl-containing cross-linking agent and the rheological modifier are subjected to quick reaction and curing under ultraviolet irradiation, proper rheological property enables DIW (direct ink writing) 3D (three-dimensional) printing to be carried out more efficiently, a printed product has the characteristics of high elasticity and high strength, especially shows outstanding advantages in the aspect of the strength, meanwhile, has appropriate hardness, and has no unpleasant smell after being cured, the toxicity is low, the pollution is small, and the size precision controllability of a printing material is realized.