The previous research addressed the waste problem of agriculture and forestry residues by exploring the efficient utilization of liquefied soybean straw in supercapacitor. The structures of the liquefied soybean straw were controlled by coupling microwave hydrothermal treatment with carbonization under the influence of a C3N4 bifunctional template. What's more, C3N4 could effectively regulate the pore structures and provide an effective N active site of carbon materials C3N4. The obtained N-SLR Carbon-700 possess a specific surface area of up to 1593.7 m2 g -1, and the pore size is mainly concentrated in the range of 1.8-2.5 nm, providing efficient ions transmission channels and storage space. Its specific capacitance is up to 261.5 F g-1 (current density of 0.5 A g-1), and the capacity retention is 74.04 % when the current density is expanded by 20 times. In the two-electrode system, the energy density of N-SLR Carbon-700 could reach to 31.3 W h kg-1 at a power density of 360 W kg-1, as well as the energy surface density is maintained at 69 % when the power density is increased by a factor of 20. This work enhances effectively the charging and discharging stability and capacitance value of carbon-based supercapacitor.