In order to study the slow releasing carrier material of allelochemicals, polyaniline(PANI) doped with gallic acid or ferulic acid was prepared via gallic or ferulic acid/PAM fibers. The structure and morphology of the PANI were characterized by IR spectra, XRD patterns, and SEM images. The results indicate that the products were PANI doped with gallic acid or ferulic acid. And the morphology of the PANI nanorods with diameters of 200—300 nm was obtained. In addition, the changes of the PANI conductivity with content variation of acid in the fibers and the molar ratio of APS to An were investigated.