A nano-sized ZnO-loaded/N-doped carbon composite (ZnO/N-CF) was prepared by anchoring the zeolitic imidazolate framework, ZIF-8, onto a porous carbon foam (CF) with water vapor-assisted method, followed by the controlled two-step heat treatments. Utilization of ZIF-8 as a Zn source facilitated the impregnation of Zn species into the mesopores of the CF matrix, establishing the beneficial conductive networks between ZnO particles and preventing the growth and aggregation of ZnO particles during the prolonged cycles. The ZnO/N-CF sample exhibited stable discharge capacities of more than 1177mA h g−1 after 100 cycles with a current density of 98mAg−1 between 0.01 and 3.0V. It also showed excellent rate capabilities compared to bare ZnO and previously reported other ZnO-based electrodes.