The synthesis process of g-C
3N
4 derived from cyanamide precursor is shown in Fig. S10 (Supporting information). As reported in the literatures [
24,
31], the endothermic melting of cyanamide occurs at 45 ℃, and in the following reactions, dicyandiamide, melamine, melem, and polymeric melem are formed by a series of exothermic polycondensation processes at 137, 234, 350 and 390 ℃, respectively. Finally, g-C
3N
4 is formed at 520 ℃,
via the layer stacking under van der Waals force. To better understand the reaction kinetics, the possible schematic model for the formation of g-C
3N
4 are exhibited. In
Fig. 3a, by adjusting the porosity of porcelain boat (from top to bottom, opened, pored, and sealed porcelain boat, respectively), the ambient pressure is changed with the flow forms of nitrogen gas: Outward diffusion, cyclic flow, and inward compression. As a result, the diffusion behavior of the cyanamide molecules and a series of intermediates will depend on the flow pattern of the gas stream, resulting in different internal structures. As shown in
Fig. 3b, the g-C
3N
4-P displays the standardized layer constructed from tri-s-triazine, where the nitrogen atoms at different position can form pyridinic (C—N=C), pyrrolinic (N—(C)
3), and graphitic nitrogen (N—H). However, when the ambient pressure transformed, the single layer of g-C
3N
4-O exhibits a half-baked structure due to the incomplete condensation, where the extra edges can result in the form of more graphitic nitrogen (N—H), and amino-groups (—NH
2) which are in consistence with the stronger FT-IR band in the 3100–3500 cm
-1 region of g-C
3N
4-O [
28]. These extra groups can decrease the C/N atomic ratios (confirmed by Table S1 in Supporting information), less than theoretical value of 0.75 [
16]. The ratio of pyridinic N (C—N=C) and pyrrolinic N (N—(C)
3) is also decreased (
Fig. 2f) [
32,
33]. In contrast, the layers shown in g-C
3N
4-S are relative complete, but due to the strong
π-
π interaction, the planar ring can easily reform a series of nanoscale blocks, such as powders, films or particles [
22]. Furthermore, as shown in
Fig. 3c, ambient pressure also plays an important role in interlayer stacking. The layer spacing of g-C
3N
4-O, g-C
3N
4-P and g-C
3N
4-S decreases with the ambient pressure increasing, respectively, which is consistent with the (002) stacking peak of XRD pattern.