This study investigates the potential of sulphur and oxygen-codoped graphitic carbon nitride (S,O-GCN) as a photocatalyst for degrading rose bengal (RB) dye in industrial wastewater. Using a straightforward solid-state annealing method, we synthesised S,O-GCN photocatalysts. The synthesized materials were characterised through various analytical techniques to evaluate their structural and compositional attributes. The S,O-GCN photocatalysts demonstrated significantly improved photocatalytic activity, which can be linked to their enhanced specific surface area. The adsorption behaviour of S,O-GCN towards RB dye was evaluated using Langmuir and Freundlich isotherm models, revealing a maximum adsorption capacity of 3.1124 mg/g. The photocatalytic activity of S,O-GCN demonstrated an impressive degradation efficiency of 77.77% over a reaction time of 100 minutes, with a rate constant of 0.032 min-1 and a half-life of 21 minutes. These findings highlight the potential of S,O-GCN as effective materials for the degradation of environmental pollutants.