Abstract The design and synthesis of g-C3N4 with favourable physical-chemical architecture are important factors in influencing its photoactivity. Herein, a phosphorus (P) vapor assisted synthetic strategy was employed to fabricate the P-doped hollow g-C3N4 photocatalysts with ultrathin shell structure (