Molecularly doped g-C3N4 exhibited an enhanced performance for the photocatalytic hydrogen production with a H2 evolution rate of 1619 μmol g−1 h−1.