An N-doped highly ordered mesoporous carbon material is synthesized. The nitrogen functionalities are found to be chemically bonded on the carbon surface, and the mole ratio of N to C is 1:100. The electrochemical H insertion into the carbon interlay