Porosity and channel structure has important effects on the performance of hydrogen evolution reaction (HER) of nanostructured electrocatalysts in acid solution and seawater. Mesopore usually helps to enhance the reaction kinetics and mass transfer, while the macroporous channel structure also affects the electrocatalyst. Traditional graphene materials do not have such structure. Therefore, this paper designs a method to synthesize Mo2C composite nanomaterial in situ on corn straw biochar, inspires by the natural channel structure of conducting water, salt and organic matter in plants. Characteristic characterization shows that the material also has a large number of mesoporous and vertical distribution of large porous channel structure, through the decrease of tortuosity and porosity, ensure the catalyst surface electrolyte transport and hydrogen timely escape, alleviate the process of metal ion precipitation blocking pore channel, so as to improve the rate of hydrogen evolution reaction. The results shows that the overpotential of the catalyst was 48 mV and 251 mV under 10 mA cm-2 acidic electrolyte and simulated seawater electrolyte, respectively. This method provides new ideas for the design of efficient electrocatalysts for seawater decomposition, then the HER performance in alkaline and neutral environments needs to be further explored.