Solid base catalysts are widely used in the chemical industry owing to their advantages of environmental friendliness and easy separation. However, their application is limited by basic site aggregation and poor stability. In this study, we report the preparation of magnesium (Mg) single-atom catalysts with high activity and stability by a sublimation-trapping strategy. The Mg net was sublimated as Mg vapor at 620 °C, subsequently transported through argon, and finally trapped on the defects of nitrogen-doped carbon derived from metal-organic ...