We report a multi-shelled two-dimensional metal-organic framework (MOF), which is transferred to a Co/Ni-embedded bimetallic N-doped porous carbon. The bimetallic N-doped porous carbon exhibits high electrocatalytic activity and long-term stability toward the oxygen-reduction reaction (ORR) and Zn-air batteries.