In recent years, a more direct solution that harvesting, storing, and directly releasing solar energy in the form of electricity is of great interest, which stimulates the exploration of photochargeable materials. Kalasina et al. developed the doublelayered cobalt hydroxides, α-Co(OH) 2 and β-Co(OH) 2 , with an energy band gap of 2.85 eV, which can generate photoelectrons and holes via photovoltaic effects and performed photoactive energy storage by a symmetric FTO (fluorine-doped tin oxide)//α-Co(OH) 2 //KOH electrolyte//β-Co(OH) 2 //FTO supercapacitor cell. [7,8] Safshekan et al. developed a photocapacitive device based on the heterostructured BiVO 4 -PbO x system. BiVO 4 with a band gap of 2.4 eV provides the photoactive core of the device, while PbO x nanoparticles furnish a capacitive platform by redox pseudocapacitance. [9] More remarkably, in last 3 years, both Baruah group and Lotsch group have reported that 2D graphitic carbon nitrides possess significant photorechargeable effects. Baruah and his co-workers used a zinc-ion capacitor in which the carbon nitride with a band gap of 2.75 eV served as both the capacitor electrode and light harvesting material to achieve a light-induced capacitance of 11.377 F g -1 . [10] Lotsch et al. fabricated a battery using a cyanamide functionalized carbon nitride with a band gap of 2.76 eV as light absorber and the sacrificial electron donor (4-methylbenzyl alcohol) to extract the holes, and achieved a charge capacity of 43.7 C g -1 . [11] Meanwhile, we reported a carbon-rich polymeric carbon nitrides (CPCN) with a band gap of 1.74 eV thus strong visible light absorption, which served as the photoelectrode in a photoelectrochemical (PEC) solar cell and successfully demonstrated direct solar-to-electric energy conversion and storage. [12,13] 2D carbon-rich conjugated polymer frameworks have drawn growing research interest as a new generation of multifunctional materials. Typical carbonrich conjugated polymer frameworks are characterized by layerstacked periodic structure with high in-plane π-conjugation. These unique structures endow them with regular porosities, large specific surface areas, and superior chemical stability. 2D carbon-rich conjugated polymer frameworks with thin-layerThe photochargeable materials have drawn growing research interest for the application of direct photoelectric storage of solar energy. Carbon-rich conjugated carbon nitride polymers with hybrid π-conjugated structure combining heptazine motifs with graphitic carbon rings have drawn a lot of attention for the extended conjugation length, tunable band gap, and 2D thin-layer structure. The carbon-rich polymeric carbon nitride (CPCN) with a band gap of 1.74 eV is successfully applied in direct photoelectric storage of solar energy. However, the ambiguous underlying mechanism limits the performance improvement. Herein, the relationship of microstructure and photoelectrochemical properties of the CPCN material is further investigated using the techniques including nuclear magnetic resonance spect...