O-doped g-C(3)N(4) was synthesized for the first time by a facile H(2)O(2) hydrothermal approach. The O-doping in the g-C(3)N(4) lattice could induce intrinsic electronic and band structure modulation, resulting in its absorbance edge up to 498 nm and enhanced visible-light photoactivity, consequently.