A novel water-stable two-dimensional zeolitic imidazolate frameworks thin-film composite membrane for enhancements in water permeability and nanofiltration performance.