YBa2Cu3O7-δ thin films were deposited onto (100) SrTiO3 substrates using 1064, 532, 355, 248, and 193 nm laser ablation. Transport measurements show lower normal-state resistivities and higher critical currents in films deposited by the shorter wavelength lasers. The surface morphology of the films was rough with large particulates when the 1064 nm laser was used whereas much smoother surfaces with fewer and smaller particulates were obtained with the UV lasers. It is suggested that the better film quality obtained when the UV lasers are used is due to a small absorption depth of the UV photons in the ceramic target and to higher absorption by the ablated fragments. This leads to smaller ablated species and further fragmentation in the hotter plume and, therefore, to smoother and denser films.