Microspheres of conducting polymers poly N-methylaniline (PNMA) were successfully synthesized through oxidation of N-methylaniline without any template. The average diameter of the microspheres with a smooth surface was about 0.40 µm when 0.2 M N-methylaniline was oxidized with 0.2 M ammonium persulfate in 0.2 M of HClO4 solution. The size of microspheres can be controlled by changing reaction time and temperature. The acid concentration was critical for the formation of microspheres with smooth surfaces. The excellent antibacterial performance of PNMA in novolac epoxy coating to sulfate reducing bacteria was demonstrated. Moreover, in API media, PNMA inhibited growth of SRB and then reduced the corrosion rate of carbon steel remarkably.