The present invention relates to a method of protecting a substrate against ultraviolet (UV) irradiation by applying to the substrate metal oxide nanocomposite particles showing at the same time high transmittance of visible light and high absorbance of UV light.