On the basis of the boron nitride (BN) nanosheet, the Al/Psubstituted and alkali-doped M@Al-BN, M'@Al-BN, M@P-BN, and M'@P-BN (M, M' = Li, Na, K) compounds were designed to study how the dopants affect the nonlinear optical (NLO) responses. The alkali metal atoms on the Al/P-substituted BN nanosheets are located inside or outside the bowl. The results show that doping the alkali metal atoms can significantly reduce the energy gaps of the undoped systems, which is mainly attributed to the new high HOMO level containing excess electrons. These doped species possess the electride characteristics and exhibit large static first hyperpolarizabilities (β 0 ) in the range of 1807-60919 au. Especially, the loosely bound excess electron from alkali metal atom brings the considerable β 0 to Na'/K'@Al-BN and M/M'@P-BN systems. In addition, the introduction of an alkali atom significantly enhances the β 0 of P-BN compared to corresponding Al-BN because these compounds have much smaller transition energies. These findings may provide valuable insights into the design of new high-performance NLO materials based on BN nanosheets.[a] Dr. ). The authors also acknowledge the National Supercomputing Center in Shenzhen for providing computational resources.