Nanostructures�coupled with mass spectrometry� have been intensively investigated to improve the detection sensitivity and reproducibility of small biomolecules in laser desorption/ionization mass spectrometry (LDI-MS). However, the impact of laser-induced shock wave on the ionization of the nanostructures has rarely been reported. Herein, we systematically elucidate the laser shock wave effect on the ionization in terms of the in situ development of atomic defects and piezoelectricity in two-dimensional graphitic carbon nitride nanosheets (g-C 3 N 4 NS) by short laser pulses. The mass analysis results of immunosuppressive drugs verify the enhanced LDI-MS performance, structurally originating from anisotropic lattice distortions in g-C 3 N 4 NS, i.e., in-plane extension (contraction) and out-ofplane contraction (extension) that modulate the charge carrier motion. Along with the experimental investigations, density functional theory calculations on Mulliken charges and dipole moments demonstrate the contribution of defect and piezoelectricity to the ionization. The results of this study provide a mechanistic understanding of the underlying ionization processes, which is crucial for revealing the full potential of laser shock waves in LDI-MS.