The invention relates to a method of preparing a nitrogen-doped porous carbon material, and belongs to the field of inorganic nanometer materials and electrochemistry. The inventive method comprises the steps of: preparing mesoporous carbon nitrogen compound with mesoporous silicon oxide powder and ethylene diamine as precursors, and activating with an activator potassium hydroxide at high temperature while controlling the mass ratio of the potassium hydroxide and the mesoporous carbon nitrogen material to obtain a nitrogenous material with high specific surface area and pore volume. The specific electric double layer capacitance of the inventive nitrogen-doped porous carbon material in alkaline aqueous electrolyte under potential scanning speed of 2mV/s is 328F/g and 318F/g, respectively, which are much higher than that of the reported porous carbon materials. The inventive nitrogen-doped porous carbon material has good application prospect as a high-power super capacitor active material.