ConspectusMembranes are pivotal in a myriad of energy production processes and modern separation techniques. They are essential in devices for energy generation, facilities for extracting energy elements, and plants for wastewater treatment, each of which hinges on effective ion separation. While biological ion channels show exceptional permeability and selectivity, designing synthetic membranes with defined pore architecture and chemistry on the (sub)nanometer scale has been challenging. Consequently, a typical trade-off emerges: highly permeable membranes often sacrifice selectivity and vice versa. To tackle this dilemma, a comprehensive understanding and modeling of synthetic membranes across various scales is imperative. This lays the foundation for establishing design criteria for advanced membrane materials. Key attributes for such materials encompass appropriately sized pores, a narrow pore size distribution, and finely tuned interactions between desired permeants and the membrane. The advent of covalent-organic-framework (COF) membranes offers promising solutions to the challenges faced by conventional membranes in selective ion separation within the water-energy nexus. COFs are molecular Legos, facilitating the precise integration of small organic structs into extended, porous, crystalline architectures through covalent linkage. This unique molecular architecture allows for precise control over pore sizes, shapes, and distributions within the membrane. Additionally, COFs offer the flexibility to modify their pore spaces with distinct functionalities. This adaptability not only enhances their permeability but also facilitates tailored interactions with specific ions. As a result, COF membranes are positioned as prime candidates to achieve both superior permeability and selectivity in ion separation processes.In this Account, we delineate our endeavors aimed at leveraging the distinctive attributes of COFs to augment ion separation processes, tackling fundamental inquiries while identifying avenues for further exploration. Our strategies for fabricating COF membranes with enhanced ion selectivity encompass the following: (1) crafting (sub)nanoscale ion channels to enhance permselectivity, thereby amplifying energy production; (2) implementing a multivariate (MTV) synthesis method to control charge density within nanochannels, optimizing ion transport efficiency; (3) modifying the pore environment within confined mass transfer channels to establish distinct pathways for ion transport. For each strategy, we expound on its chemical foundations and offer illustrative examples that underscore fundamental principles. Our efforts have culminated in the creation of groundbreaking membrane materials that surpass traditional counterparts, propelling advancements in sustainable energy conversion, waste heat utilization, energy element extraction, and pollutant removal. These innovations are poised to redefine energy systems and industrial wastewater management practices. In conclusion, we outline future research directions and highlight key challenges that need addressing to enhance the ion/molecular recognition capabilities and practical applications of COF membranes. Looking forward, we anticipate ongoing advancements in functionalization and fabrication techniques, leading to enhanced selectivity and permeability, ultimately rivaling the capabilities of biological membranes.