Electroactive polyaniline (PANI) was layered on base PES asymmetric nanofiltration membrane using in situ solution-phase polymerization. PANI deposition time showed a significant effect on membranes' structural properties and desalination performance.