Molecular oxygen activation often suffers from high energy consumption and low efficiency. Developing eco-friendly and effective photocatalysts remains a key challenge for advancing green molecular oxygen activation. Herein, graphitic carbon nitride (g-C3N4) with abundant hydroxyl groups (HCN) was synthesized to investigate the relationship between these polar groups and molecular oxygen activation. The advantage of the hydroxyl group modification of g-C3N4 included narrower interlayer distances, a larger specific surface area and improved hydrophilicity. Various photoelectronic measurements revealed that the introduced hydroxyl groups reduced the charge transfer resistance of HCN, resulting in accelerated charge separation and migration kinetics. Therefore, the optimal HCN-90 showed the highest activity for Rhodamine B photodegradation with a reaction time of 30 min and an apparent rate constant of 0.125 min-1, surpassing most other g-C3N4 composites. This enhanced activity was attributed to the adjusted band structure achieved through polar functional group modification. The modification of polar functional groups could alter the energy band structure of photocatalysts, narrow band gap, enhance visible-light absorption, and improve photogenerated carrier separation efficiency. This work highlights the significant potential of polar functional groups in tuning the structure of g-C3N4 to enhance efficient molecular oxygen activation.