Novel hierarchical porous carbons (NHPCs) containing 3D carbon nanosheets and slit-mesopores are prepared in this work, using MgAl-layered double hydroxides as template and sucrose as carbon source, and their electrochemical performances as anodes of lithium-ion batteries are also investigated. Owing to the existence of abundant carbon nanosheets and slit-mesopores, the NHPCs electrode exhibits the specific reversible capacity of 1151.9mA h/g at the current density of 50mA/g, which is significantly higher than other hierarchical porous carbons reported in previous literatures. The contributions of carbon nanosheets and mesopores to the electrochemical performance are further clarified by nitrogen adsorption-desorption test, electrochemical impedance spectroscopy, cyclic voltammograms and galvanostatic charge/discharge test. This work not only provides an easy and effective method to prepare hierarchical porous carbon materials, but also is beneficial for the design of high-performance anode materials for lithium ion batteries.