The zinc oxide, silver particles and the nanocomposite Ag-ZnO were prepared in an easy, fast and environmentally friendly nanoscale method, where these nanomaterials were prepared from nitrates using plant leaf extract Albizia lebbeck, and this environmentally friendly method is safe, nontoxic and nonharmful to the environment, it is a system that is not only cost-effective, but also simple to use and efficient. The reduction reaction can regulate the features and qualities of the resultant chemicals. The researchers used a variety of methods to diagnose and investigate the properties of these nanomaterials, including scanning electron microscopy (FE-SEM), X-ray diffraction (XRD) and atomic force microscopy (AFM). The results showed the formation of zinc oxide and silver in the form of nanoparticles with good properties, as well as the formation of the nanocomposite Ag-ZnO, and element analysis EDX, and infrared FT-IR, and the results showed the formation of zinc oxide and silver in the form of nanoparticles with good properties, and the results also showed the growth of Ag particles on the surface of the reduced zinc oxide and formation of nanocomposite Ag-ZnO. The photocatalytic degradation of Cibacron Brilliant Yellow 3G-P (CB) dye in the presence of visible light was investigated using Ag-ZnO nanostructures as a photocatalyst. About 1[Formula: see text]g/L of Ag-ZnO with 20[Formula: see text]ppm of the dye produces a greater efficiency in the photocatalysis of the dye in its aqueous solution. The influence of the catalyst amount was explored within the quantities (0.2–0.4–0.6–0.8–1.0–1.2–1.4[Formula: see text]g/L) of the components affecting the photo-smashing process to evaluate the best weight which was 1(g). A photosynthesis ratio was calculated using HCL and NaOH to modify the pH of solutions at a concentration of 5[Formula: see text]ppm, [Formula: see text], 4, 6, 8 and 10. It was also discovered that the acidic function 10 was the best function for breaking down the dye with a 99.1% success rate, and that the shattering reaction followed the kinetics of the first order (Pseudo first), with five consecutive reuses of the best catalyst agents in breaking down the dye Ag-ZnO, was also investigated. After 120[Formula: see text]min, Ag doping ZnO with 10% loading showed photocatalytic elimination of about 93%. and the impact of Ag-ZnO nanocomposite on Staphylococcus aureus and Escherichia coli bacteria was investigated, which were utilized as illustrative examples of the cream-negative bacterium and the positive bacteria, respectively. The findings indicated that the Ag-ZnO nanocomposite had a high rate of success in eradicating and destroying these germs, demonstrating the viability of using a nanoscale solution to sanitize and eradicate microorganisms.