The contamination of water resources in recent years has resulted in the dissemination of harmful bacteria via water sources, posing a significant threat to the safety and well-being of humans, animals, and plants. Consequently, there is a growing concern over the health and sanitation of water resources. Photocatalysis, a novel and very effective antibacterial method, has gained significant attention in the area of antibacterial research. Bismuth nitrate pentahydrate and sodium tungstate dihydrate were used in a straightforward hydrothermal process to create nanoflower spheres Bi2WO6/ZnO photocatalytic composites in molar ratios of 1:1, 1:2, 1:3, and 1:4. The first-ever demonstration of the photocatalytic broad-spectrum antibacterial activity of porous nanoflower spheres Bi2WO6/ZnO composites was shown. The samples were analyzed using X-ray diffraction (XRD), X-ray photoelectron spectroscopy (XPS), scanning electron microscopy (SEM), Fourier-transform infrared spectroscopy (FT-IR), and ultraviolet–visible spectroscopy (UV–vis). The antibacterial activity was evaluated using the dilution coated plate technique, with LED light irradiation. The findings indicate that the Bi2WO6/ZnO composite has a much superior antibacterial activity against both bacteria and fungus compared to individual Bi2WO6 and ZnO. When exposed to LED lighting with an intensity of 35 W, the Bi2WO6/ZnO nanoparticles in a 1:2 ratio at a concentration of 1000 mg/L demonstrated complete antibacterial effectiveness against Escherichia coli, Staphylococcus aureus, Pseudomonas aeruginosa, and Bacillus subtilis within 30 min. Similarly, the nanoparticles achieved 100 % antibacterial efficiency against Candida albicans within 90 min. The antibacterial efficacy of 1000 mg/L 1:2 Bi2WO6/ZnO nanoparticles against Escherichia coli and Staphylococcus aureus was found to be 100 % within 5 min under natural lighting conditions. The findings indicate that Bi2WO6/ZnO nanoparticles have excellent photocatalytic broad-spectrum antibacterial efficacy.