Hierarchical SAPO-34 zeolite with high crystallinity and excellent hydrothermal stability was directly synthesized in the nanoscale confined environment provided by the natural layered material kaolin.