Titania nanosols were prepared by a sol-gel method using tetrabutyl titanate (TTB) as precursors. Effects of the content of chelator, water, catalyst, and reaction time on the ultraviolet -resistant property of textile were investigated. An orthogonal experiment was conducted for the optimization preparation. The ultraviolet protection factor (UPF) value of fabrics increased with the enhancement of the TTB content; however, reaction time had limited influence on the UPF. When chelator, water, and catalyst contents were 5.5, 90, and 5.5% (w/w) (in solution B), respectively, the preparation was optimal, and the UPF value of fabric reached 60.