Preparation and characterization of polyaniline (PANI) doped with anions containing phosphorus was investigated with the help of various technique. The chemical polymerization of aniline was carried out in acid media containing different anions of organic phosphorus acid with the use of ammonium peroxidisulfate as oxidant agent. The highest yield was observed in the case of styrilphosphonic acid. The conductivity increased in the following order: phenylphosphinic acid < 2chloroethylphosphonic acid < styrilphosphonic acid. The solubility tests carried out in DMF, DMSO and NMP showed that the presence of voluminous anions improves the solubility of doped PANI. The synthesized PANI was characterized by density, intrinsic viscosity, solubility, FTIR, UV–vis, NMR, conductivity and TGA measurements. The hardness, elasticity, resistance and protective behavior of acrylic films were determined. The acrylic dispersion based on PANI doped with anions containing phosphorus provides improved corrosion protection of carbon steel.