The invention provides an ultraviolet-cured thin film with an adjustable refractive index and a preparation method of the ultraviolet-cured thin film. The preparation method comprises steps as follows: ethyl orthosilicate, deionized water and an organic solvent are mixed and subjected to a reaction for 12-24 h at 8-12 DEG C, an oligomer is prepared and then is aged for 48-72 h at 45-55 DEG C, andSiO2 porous spheres are prepared by self-assembly clustering of the oligomer; (2), silane methacrylate, deionized water and the organic solvent are mixed and subjected to a reaction for 6-8 h at 110-130 DEG C, an oligomer is prepared, a photoinitiator is added, and UV-curable sol is prepared; (3), the SiO2 porous spheres and the UV-curable sol are mixed, and a to-be-cured thin film is prepared; (4), the to-be-cured thin film is irradiated under ultraviolet light, and the ultraviolet-cured thin film with the adjustable refractive index is prepared. The prepared thin film has wider refractive index regulating range and high resistance to laser damage, and high-energy laser output of an intense laser device can be realized.