Metal-free graphitic carbon nitride (g-C3N4) has captured significant attention as a low-cost and efficient hydrogen production photocatalyst through. Effectively regulating the microstructure and accelerating the separation of photogenerated carriers remain crucial strategies for promoting the photocatalytic performance of this material. Herein, a novel sulfur–carbon co-doped g-C3N4 (SCCN) hierarchical microtubules filled with abundant nanosheets inside by thermal polymerization is reported. Numerous nanosheets create abundant pores and cavities inside the SCCN microtubes, thereby increasing the specific surface area of g-C3N4 and providing sufficient reactant attachment sites. Besides, the hierarchical structure of SCCN microtubules strengthens the reflection and scattering of light, and the utilization of visible light is favorably affected. More importantly, co-doping S and C has greatly improved the photocatalytic performance of graphitic carbon nitride, optimized the band gap structure and enhanced the photogenerated carrier splitting. Consequently, the SCCN exhibits a remarkable photocatalytic H2 evolution rate of 4868 µmol/(g·h). This work demonstrates the potential of multi-nonmetal doped g-C3N4 as the ideal photocatalyst for H2 evolution.