Ordered mesoporous carbons (BOMC) were prepared by doping boric acid using a hard-templating method, while a CMK-3 carbon (OMC) was also prepared for comparison. The capacitive performance of these two carbons was investigated in ionic liquid of EMImBF4 and EMImTSFI. As demonstrated by the structure analysis, BOMC possesses almost same surface area and pore size as OMC, while the former carbon possesses higher content of oxygen-containing groups. In ionic liquid electrolyte, the carbons mainly show typical electric double layer capacitance, and the capacitance retention ratio and ion diffusion of electrolyte is determined to the surface chemical property. BOMC present visible pseudo-capacitance due to the oxygenated groups in hydrophilic EMImBF4, while no visible pseudo-capacitive behavior was observed in hydrophobic EMImTSFI.