All-inorganic halide perovskite (CsPbX 3 ) nanocrystals (NCs) have garnered significant attention due to their excellent photoelectric properties. However, their practical application has been limited by stability issues. This study presents a strategy combining physical confinement through a carrier matrix and chemical bond coupling to enhance the stability of CsPbX 3 NCs significantly under UV irradiation, polar solvents, and thermal conditions. Specifically, CsPbBr 3 NCs exhibited near-complete fluorescence quenching within 300 min when treated with water and ethanol. In contrast, CsPbBr 3 /DMSNs-NH 2 nanocomposites retained 86.9% and 75.4% of their initial photoluminescence intensity after 7 days. This enhanced stability is attributed to the multilevel pore architecture of DMSNs-NH 2 , which effectively prevents direct interaction with water and oxygen. Furthermore, bright white light-emitting diode (LED) devices were successfully fabricated using these nanocomposites, achieving a color temperature of 6045 K and a color gamut covering 133.5% of NTSC and 99% of Rec.2020 standards. This work demonstrates a promising pathway for the development of stable, high-performance perovskite-based optoelectronic devices.