Efficient catalysts play a pivotal role in advancing eco-friendly water treatment strategies, particularly in the removal of diverse organic contaminants found in water-petroleum sources. This study addresses the multifaceted challenges posed by contaminants, encompassing a spectrum of heavy metals such as As, Cd, Cr, Mn, Mo, Ni, Pb, Sb, Se, and Zn alongside pollutants like oily water (OIW), total suspended solids (TSS), chemical oxygen demand (COD), dyes, and pharmaceuticals, posing threats to both aquatic and terrestrial ecosystems. Herein, we present the synthesis of biogenically derived Mn@NiO nanocomposite (NC) photocatalysts, a sustainable methodology employing an aqueous Rosmarinus officinalis L. extract, yielding particles with a size of 36.7 nm. The catalyst demonstrates exceptional efficacy in removing heavy metals, achieving rates exceeding 99–100% within 30 min, alongside notable removal efficiencies for OIW (98%), TSS (87%), and COD (98%). Furthermore, our photodegradation experiments showed remarkable efficiencies, with 94% degradation for Rose Bengal (RB) and 96% for methylene blue (MB) within 120 min. The degradation kinetics adhere to pseudo-first-order behavior, with rate constants of 0.0227 min−1 for RB and 0.0370 min−1 for MB. Additionally, the NC exhibits significant antibiotic degradation rates of 97% for cephalexin (CEX) and 96% for amoxicillin (AMOX). The enhanced photocatalytic performance is attributed to the synergistic interplay between the Mn and NiO nanostructures, augmenting responsiveness to sunlight while mitigating electron-hole pair recombination. Notably, the catalyst demonstrates outstanding stability and reusability across multiple cycles, maintaining its stable nanostructure without compromise.Graphical