New application of conducting poly aniline for removal of nitrate via ESIX as a green technology for groundwater and waste water treatment is introduced. The PANI were synthesized via electrochemical method on the platinium electrode in three acidic media. Ion exchange technique was processed via potensioactatic. The best result obtained for H2SO4 media, that 87% nitrate ion was removed. The 3 consuctive regeneration treatment could be reused that was up to 60%. Nitrate ion was removed without any toxic by product. Diffrent parameter such as pH, concentration were designed by design expert software. Optimal removal at 1.5, because in upper voltage,oxidation of water was occurred. Optimum parameters for SO4 were pH:6, concentration:88mg/l.