In this work, a chemically and thermally robust and highly porous zeolite-type metal-organic framework, zeolitic imidazolate framework-8 (ZIF-8), was used as both a precursor and a template and furfuryl alcohol as a second precursor to synthesize a nanoporous carbon. The prepared ZIF-8-derived