Thermal behavior of polyaniline(PAn) doped with kinds of inorganic or organic acids under desired atmosphere were studied by TG,DSC and in-situ electrical conductivity measurements. The reason for the thermal stability of electrical conductivity of doped PAn was discussed.