Nanofiltration (NF) is receiving increasing attention worldwide as a high-efficiency technology for water purification. One viable approach to enhance the performance of NF membranes involves the meticulous optimization of their physicochemical and structural attributes through the introduction of additives. Nonetheless, the predominant NF membrane additives currently accessible primarily exert their influence at the membrane's surface. In this context, we introduce a novel strategy for fabricating polyamide (PA) NF membranes endowed with augmented negative charge density, capable of permeating the innermost stratum of the separation layer. This innovation hinges on the straightforward inclusion of 2-Methylimidazole (Hmim) into the aqueous phase. The ramifications of Hmim's incorporation of the structural configuration, morphological composition, physicochemical characteristics, and overall performance of the thin-film composite (TFC) membrane were meticulously scrutinized through an array of comprehensive characterizations. The integration of Hmim affords PA nanofiltration membranes the remarkable capability to achieve a rejection rate as formidable as 99.5% for Na2SO4 and 42.8% for NaCl, all the while maintaining an unswerving flux. As a result, a high SO42-/Cl- separation factor of up to 116.1 was achieved. Our work provides insights and directions for the development of additives in the preparation of NF membranes.