The objective of this work is the synthesis and characterization of zinc-rich epoxy primer blended with polyaniline in different concentrations. Dopants effects in polyaniline (PANI) inhibition of corrosion have been studied by doping PANI by camphor-10-sulfonic acid phenylphosphonic acid and phosphoric acid. The synthesized polymers were characterized by X-ray diffraction pattern (XRD) Fourier transform infrared (FTIR) scanning electron microscopy (SEM) thermal gravimetric analysis (TGA) and electrical conductivity techniques. Then the formed coatings were applied on carbon steel plates to study its corrosion protection performance in 3.5 wt.% NaCl solution by electrochemical techniques including open circuit potential (OCP) localized electrochemical impedance spectroscopy (LEIS) and normal EIS. The surface morphology studies showed that the formed composite coatings are uniform and compact. It was found that the presence of PANI can significantly improve the barrier and corrosion protection performance of the zinc-rich epoxy coating. The mechanism of PANI protective coating has been proposed.