Encapsulation of Pt nanoparticles (NPs) in zeolitic imidazolate frameworks (ZIFs) was achieved via assembly of ZIF nanostructures around the pre-formed "unprotected" NPs. Ptn@ZIF-8 showed efficient size-selective hydrogenation ability due to the uniform microporous structure.