film was synthesized in 0.30 M oxalic acid solutions containing 0.05 M aniline + 0.05 M pyrrole + 0.05 M N-methylpyrrole. Poly(aniline-co-pyrrole-co-N-methylpyrrole)-TiO 2 nanocomposites were synthesized in 0.30 M oxalic acid solutions containing 0.05 M aniline + 0.05 M pyrrole + 0.05 M N-methylpyrrole + 0.1/0.4/1.0 gL À 1 TiO 2 .Electrochemical syntheses were performed on the carbon steel (CS) elctrode using cyclic voltammetry technique. The terpolymer and nanocomposites were characterized by SEM, EDX, electrochemical impedance spectroscopy (EIS), open circuit potential-time and anodic polarization techniques. Nanocomposite structures were observed after the addition of TiO 2 nanoparticles into terpol-ymer films and these results was verified via EDX analysis. The results driven by EIS and anodic polarization suggest that, terpolymer and nanocomposite coated electrodes have been shown to have a protective effect against the corrosion of the CS electrode. The nanocomposite coated electrode synthesized in an environment containing 0.4 gL À 1 TiO 2 was found to have higher corrosion resistance in comparison to uncoated electrode, terpolymer coated electrode and electrodes coated with nanocomposites that is synthesized in environments containing 0.1/1.0 gL À 1 TiO 2 . These results showed that the amount of TiO 2 affects the anticorrosive properties of the synthesized nanocomposite.