Inorganic-template synthesis of crystalline porous metal oxides nanosheets with fantastic properties is a powerful approach, but it is limited in the systems with strong interaction between inorganic crystals and guest species. Here, we report a gradient crystallization induced spatial confinement method to achieve a general synthesis of porous metal oxides nanosheets regardless of host–guest interaction. Taking the synthesis of porous SnO2 nanosheets as an example, the freezing of KCl/SnCl2 aqueous solution induces the gradient crystallization of lamellar ice and KCl structure, and subsequently expelled KCl/SnCl2 crystals can be limited in the confined region to form the ice/SnCl2/KCl sandwich structure. Followed by freeze-drying, calcination and water washing, the porous SnO2 nanosheets structure can be obtained. Notably, this general method enables the synthesis of functional porous nanosheet with specific designed component and surface properties, and the obtained porous Pt-SnO2 nanosheets with abundant accessible active sites and lower d-band center exhibit superior gas sensing performance to 3-hydroxy-2-butanone.