Nitrogen-doped mesoporous hollow carbon nanoflowers (N-HCNF) are successfully prepared by a facile hard-template route via a hydrothermal process, subsequent carbonization and etching.