||Molybdenum carbide is promising electrocatalysts for HER, due to its high activity, stability and low price. To enhance the catalytic properties, nanostructure can be introduced in molybdenum carbide. However, the introduction of nanostructure in molybdenum carbide remains great challenge, due to the high temperature for carburization. In our works, we synthesize the mesoporous molybdenum carbide-carbon nanocomposite (m-MoxC) using interaction linker assisted EISA method. To drawing the Mo precursor in the PEO moieties, N-containing molecules are used. By controlling the amount of N-containing molecules, we can control the porosity of materials and the molybdenum carbide distribution. This materials show high activity for hydrogen evolution reaction.