The search for an economically viable and environmentally benign method for the treatment of wastewater represents a significant global challenge. Accordingly, this study examined the removal of organic pollutants from wastewater through the use of copper oxide, silver oxide, and silver-doped copper oxide nanoparticles, which were synthesized from the extracts of the plant Urginea maritima. The green synthesis of nanoparticles represents a simple, rapid, cost-effective and environmentally friendly method that has demonstrated efficacy in the removal of organic dyes from wastewater. The characterization of these nanoparticles by XRD and UV-Visible spectroscopy demonstrates the formation of copper and silver oxides in the different syntheses. The results of the degradation of crystal violet indicate that silver-doped CuO exhibits a higher photodegradation efficiency than undoped CuO in the different syntheses, with an efficiency of 98.22% after a time of 60 minutes. This makes them a highly promising catalyst for water purification and environmental remediation.