Fabrication of pH-resistant nanofiltration membranes from monomeric amines and cyanuric chloride. Tight membranes require amines with at least 3 reactive groups; highest perm-selectivity is observed for diethylene triamine. Resistance to hydrolysis due to the absence of polyamide carbonyl groups. At extreme pH, membrane rejection for small neutral decreases reversibly.