Nanoporous carbon derived from a functionalized metal-organic framework as a highly efficient oxygen reduction electrocatalyst.