Polyaniline doped with camphorsulfonic acid (PANI.HCSA) nanofibers have been successfully prepared using “nanofibers template” via electrospinning. The PVA nanofibers were used as a template to get the PANI/PVA composite fibers. After removing the template by heat treatment, the PANI fibers were obtained. Scanning electron microscope (SEM) with the Energy Dispersive X-Ray Spectrometer software (EDX) and FT-IR spectra were used to characterize the composite fibers and the PANI.HCSA nanofibers. The average diameters of the composite fibers obtained and PANI fibers were 920 nm and 530 nm, respectively.