Abstract Mesoporous carbon nanofibers (MCNFs) are fabricated at various carbonization temperatures. The carbonization temperature plays a key role in determining the structural characteristics and the electronic properties of MCNFs. The band gap energies of MCNFs are estimated to be 0.080, 0.036, and 0.014 eV at the carbonization temperatures of 600, 900, and 1200 °C, respectively. The MCNF carbonized at 1200 °C has the highest stacking height of graphene planes ( L c ) and the largest number of graphene layers ( L c / d ). Raman data show the intensity ratio of D to G peaks, which is related to the graphene size ( L a ). L a increases with increasing the carbonization temperature. In addition, as the carbonization temperature increases, the conductivity of MCNF increases due to larges values of L c , L a , and L c / d .