Helical m-phenylenediamine-formaldehyde resin nanotubes were prepared. High N-doped helical carbonaceous nanofibers were produced after pyrolysis process. The N-doped carbonaceous nanofibers showed good electrochemical performance. The doped N is beneficial to enhance the Li+ storage capacity.