The novel nonmetal interlayer incorporated into the g-C3N4 framework is successfully fabricated. It exhibits the improvement of photocatalytic activity in H2 evolution. The introduction of nonmetal interlayer effectively adjusts band gap and increases the separation efficiency of charge carriers. A possible photocatalytic mechanism is proposed.