Zinc oxide (ZnO) nanoparticles (NPs) were synthesized using Rosmarinus officinalis leaf extract at 80 ° C (ZnO-80) and 180 ° C (ZnO-180). The biosynthesized ZnO NPs were characterized and their photocatalytic activity was evaluated for the degradation of methylene blue (MB) and crystal violet (CV) under sunlight irradiation. The results of the characterizations by XRD, TEM and SEM showed that the size of the NPs of ZnO-80 was smaller than that of ZnO-180 which exhibited flakier agglomerated spherical structures. Photocatalytic tests showed ZnO-80 which was prepared by a cheap and easy procedure compared to ZnO-180 effectively degrades MB and CV dyes under sunlight. The superior performance of ZnO-80 over ZnO-180 can be explained by the differences in their textural properties. This is because ZnO-80 has a smaller crystallite size, a specific surface area and a higher pore volume than ZnO-180. Fourier-transform infrared spectroscopy (FTIR) analyzes revealed that both samples contained an adsorbed carboxylate group (COO-), and accordingly a mechanism was proposed for the formation of ZnO NPs that include the carboxyl group.