In the present study, we constructed the Ce-doped biomass carbon-based mesoporous g-C3N4 photocatalyst via alternanthera philoxeroides griseb growing guide using calcination method. The Ce-C@g-C3N4 exhibited more superior photocatalytic performance for 2-mercaptobenzothiazole (96 %) degrading than that of pure g-C3N4 (39 %) and C@g-C3N4 (60 %). As a consequence, the improved degradation efficiency of Ce-C@g-C3N4 attributed to the biomass carbon can significantly enhance the mass transport channels of electron-hole pairs. Meanwhile, the doped Ce4+ ions acting as the redox center can sufficiently utilize the photogenerated carriers for generating more active radicals. Also, the possible photocatalytic reaction mechanisms including transfer behaviors of charge carriers, generation of reactive species, intermediate degradation products are also discussed in detail. This work may provide a promising approach for synthesizing g-C3N4-based photocatalyst by the plant growing guide and application in wastewater treatment.