Nitrogen-doped mesoporous carbons were prepared using a biopolymer, gelatin as precursor by nano-CaCO3 template method. Although the surface area of the carbon obtained at 800°C is only 666m2 g−1, the existence of abundant nitrogen-containing functional groups with a nitrogen content of 10.72wt% makes the carbon has a relative high capacitance of 198Fg−1 in 6molL−1 KOH aqueous electrolytes. The developed mesoporous structure endows the carbon with good rate capability, and the capacitance can remain 135Fg−1 even when the current density increases to 20Ag−1. The carbon also possesses excellent cycle durability, indicating an attractive electrode material for supercapacitors.