The electrosynthesis of poly(N-methylaniline) (PNMA) and poly(N-ethylaniline) (PNEA) coatings on mild steel in aqueous oxalic acid solutions was carried out by potentiodynamic synthesis technique. The effects of monomer and electrolyte concentrations on electrochemical growth of PNMA and PNEA coatings on mild steel substrates were investigated. Repassivation peak did not appear during electrosynthesis of PNMA and PNEA coatings from solutions containing 0.1 M monomer and 0.1 M electrolyte. The tests for corrosion protection of the polymer coated and uncoated mild steel substrates were done in 3% NaCl solutions by dc polarization and electrochemical impedance spectroscopy (EIS) techniques. Corrosion tests revealed that PNMA and PNEA coatings exhibited effective anti-corrosive properties. The acidity of the polymerization solution was found to influence the anticorrosive behavior of the polymer coating. (c) 2006 Elsevier B.V. All rights reserved.