By combination of photocatalysis and organocatalysis, a metal-free system composed of mesoporous graphitic carbon nitride (mpg-C3N4) and N-hydroxyphthalimide (NHPI) offers an efficient and environmentally friendly method for the oxidation of alcohols at room temperature. As a wide-band gap semiconductor, mpg-C3N4 absorbs visible light and uses the energy to activate NHPI, resulting in high catalytic activity in the subsequent oxidation of alcohols. Interestingly, the main oxidation product of benzyl alcohol can be tuned from benzoic acid to benzaldehyde by increasing the ratio of mpg-C3N4 in the catalyst system. To further understand the reaction route, electron spin resonance and Fourier transform infrared measurements were carried out, confirming that active oxygen and phthalimide N-oxyl radicals formed in the mpg-C3N4/NHPI system. Based on these results, a catalytic mechanism for the mpg-C3N4/NHPI system was proposed. Moreover, this metal-free system also works well for the oxidation of various aromatic alcohols with good selectivity for aldehydes or ketones.