A facile encapsulation strategy was reported for preparing nanoparticles/metal-organic framework hybrid thin films which exhibit both the active (catalytic, magnetic, and optical) properties derived from the NPs and the size-selectivity originating from the well-defined microporous structure of the MOF thin films.