Brandiele et al. fabricated the N and S-doped mesoporous carbon via hard-template strategy by thermal annealing of appropriate organic precursor at 750 °C for 1 h accompanied by etching with ethanolic KOH for the removal of silica template . In this work, the materials such as sucrose, 1, 10-phenathroline and dibenzothiophene were employed as precursors for the formation of undoped, N and S-doped mesoporous carbon, respectively.