Phosphorus doped graphitic carbon nitride (g-C3N4) was easily synthesized using ammonium hexafluorophosphate (NH4PF6) as phosphorus source, and ammonium thiocyanate (NH4SCN) as g-C3N4precursor, through a direct thermal co-polycondensation procedure. The obtained phosphorus doped g-C3N4was characterized by X-ray diffraction (XRD), field emission scanning electron microscopy (FESEM), high-resolution transmission electron microscopy (HRTEM), X-ray photoelectron spectroscopy (XPS), Fourier transform infrared spectra (FTIR), UV–vis diffuse reflectance absorption spectra (UV-DRS), photoelectro...