Ni nanoparticles embedded in the pores of a mesoporous MOF (MesMOF-1) act as a catalyst for hydrogenolysis of nitrobenzene or hydrogenation of styrene.