BACKGROUNDThis study enhancing the corrosion resistance of mild steel (MS) by incorporating photo‐catalyst‐doped graphitic carbon nitride (g‐C₃N₄) nano‐sheets containing silver (Ag) and oxygen (O₂) into a solar light‐active photoelectrochemical anticorrosion paint with polyester (PE). The objective is to provide sacrificial anode protection through visible light activation.RESULTSThe developed paint forms a uniform film on the MS surface, effectively providing anodic protection under visible light. Characterization techniques, including energy‐dispersive X‐ray spectroscopy (EDX), transmission electron microscopy (TEM), Fourier‐transform infrared spectroscopy (FTIR), and UV–Vis spectroscopy, confirm the molecular structure of the nano‐sheets. Corrosion resistance, assessed through weight loss measurements and open circuit potential (OCP) tests, shows significant improvement with the addition of Ag/g‐C₃N₄ and Ag‐O₂/g‐C₃N₄ nano‐sheets at an optimized concentration of 15 mg. The protection efficiency is ranked as follows: O₂‐g/C₃N₄ > O‐g/C₃N₄ > Ag‐O₂/g‐C₃N₄ > Ag‐g/C₃N₄ > g‐C₃N₄. After 28 days of immersion in seawater, MS coated with O₂/g‐C₃N₄ exhibited the least weight loss, with an inhibition efficiency of up to 99%. Electrochemical impedance spectroscopy (EIS) further demonstrated enhanced coating resistance for the O₂/g‐C₃N₄ coating (Rct = 3.76 kΩ.cm2, Rcoat = 1.69 kΩ.cm2) compared to pure PE (Rct = 0.005 kΩ.cm2, Rcoat = 0.096 kΩ.cm2).CONCLUSIONThe synthesized O₂/g‐C₃N₄ and Ag‐O₂/g‐C₃N₄ nano‐sheets exhibit high surface areas and enhanced water dispersibility, which contribute to significant corrosion protection of MS. The electrochemical performance, including weight loss and OCP measurements, highlights the potential of these nano‐sheet photo‐catalysts in advancing corrosion resistance technologies, with broad implications for materials science and engineering applications. © 2024 Society of Chemical Industry (SCI).