Zinc nitrate (ZnON) and zinc acetate (ZnOA) were used as precursors for the synthesis of zinc oxide (ZnO) nanoparticles by the sol–gel method. The ZnO powder was characterized by scanning electron microscopy (SEM), transmission electron microscopy (TEM), UV–vis diffuse reflectance spectroscopy, X-ray diffraction (UV–Vis DRS), Fourier transform infrared spectroscopy (FTIR), physisorption of nitrogen, and X-ray photoelectron spectroscopy (XPS). On the other hand, the photocatalytic activity of the samples was tested in the degradation of 2,4-Dichlorophenoxyacetic acid (2,4-D) and 2,4-Dichlorophenol (2,4-DCP) under UV-light irradiation. The ZnON and ZnOA showed polycrystalline irregular structures and rod-like morphology with mean sizes of 40 and 99 nm, respectively. The precursor type influenced the bandgap, crystallite size, surface area, total pore volume, and pore diameter. The XPS results showed high contents of C and N in the ZnO samples, and as a consequence, the solids present remarkable differences in the C/N, O/C, and O/Zn atomic ratios, which significantly influenced the physicochemical characteristics. The ZnON and ZnOA exhibit photocatalytic properties against 2,4-D (74.7 and 90.9%, respectively) and 2,4-DCP (78.4 and 86.7%, respectively) and better performance of ZnOA. These results are promising and indicate the potential to use this material as a photocatalyst to degrade organic pesticides.