Introduction

Membranes featuring selective water and ion transport channels have emerged as a critical focus in materials science, with far-reaching implications for desalination, ion separation, and energy conversion1,2,3. Two-dimensional (2D) nanolaminates, constructed by stacking 2D materials, have shown great promise as nanochannel membranes for molecular and ionic separation4,5,6,7. The nano-to-subnano interlayer channels, with tailored width and chemistry, facilitate selective mass transport through the nanoconfinement effect8,9. However, many 2D membranes, particularly graphene oxide (GO) membranes10,11, suffer from uncontrollable channel width and structural instability, severely limiting their practical applications. In contrast, 2D membranes constructed from transition metal dichalcogenides, especially MoS2, offer enhanced stability due to the balance of van der Waals and hydration forces12,13. These membranes establish effective mass transport channels by hosting water molecules12 or cations14 as “spacers” between stacked MoS2 nanosheets. Without these “spacers”, MoS2 nanosheets tend to restack into a quasi-perfect bulk state, forming diminutive channels (< 0.2 Å) and impermeable membranes12,15. Nevertheless, these “spacers” exhibit instability under certain conditions. For instance, the confined water can easily escape upon dehydration, causing an irreversible contraction of these channels12. This transient hydration-dependent structure poses significant challenges for the practical implementation of MoS2 membranes. In addition, the channel width of MoS2 membranes can dramatically shrink from 5.2 to 0.2 Å in response to a pH shift from alkaline to acidic conditions, a change attributed to the exchange of cations within the channels14. Despite the reversible shrinkage, the use of these membranes in acidic conditions, a field largely unexplored for MoS2 membranes, remains a formidable challenge. Recent efforts to address these challenges have involved the covalent grafting of functional groups onto MoS2 nanosheets to develop selective channels in MoS2 membranes15,16,17,18. However, these functional groups primarily act as “spacers” to define the channel width, with their ability to tailor channel chemistry and enhance structural stability remaining largely elusive. In addition, these covalent strategies can disrupt channel alignment probably due to the spatially fixed nature of covalent bonds18 and involve time-consuming, less sustainable processes. These issues have led us to explore channel functionalization through a non-covalent approach19 using multifunctional intercalants that go beyond merely serving as “spacers”. This aims to achieve tailored channel width and chemistry while enhancing structural stability of MoS2 membranes for their potential real-world applications.

Herein, we present a facile, non-covalent intercalation strategy to engineer selective, highly stable subnanochannels in MoS2 membranes, targeting acidic wastewater treatment under harsh conditions. This approach employs polymeric quaternary ammoniums (QAs), specifically poly(diallyldimethylammonium chloride) (PDDA), as a multifunctional intercalant within MoS2 membranes. This method involves co-assembling MoS2 nanosheets with PDDA through vacuum filtration, resulting in physically confined PDDA within the interlayer galleries (hereafter referred to as MoS2-PDDA membranes). Remarkably, these confined QAs play multiple critical roles: first, they act as “spacers”, effectively suppressing the restacking of MoS2 layers to define the channel width at ~5 Å; second, they serve as “regulators”, in which positive charges transform the channel microenvironment from negative to positive to regulate ion transport properties; third, they function as “stabilizers” to interlock MoS2 channels through strong non-covalent interactions, ensuring high stability across various aqueous media, including pure water, salt solutions, and even strong acid (1 M H2SO4) (Fig. 1a). As a result, the multifaceted roles of PDDA collectively contribute to exceptional separation performance and stability of MoS2-PDDA membranes in acidic wastewater treatment. This work represents a significant advancement in the development of task-specific 2D membranes for real-world applications, particularly in challenging environments such as industrial wastewater treatment and acid mine drainage remediation.

Fig. 1: Preparation of MoS2-PDDA membranes.
figure 1

a Schematic illustration of the structure of MoS2-PDDA membranes with emphasis on the multifunctional roles of the intercalant. A photograph of a large-area (40.5 cm2) MoS2-PDDA membrane is shown in the left panel. b TEM image of MoS2 nanosheets. The inset shows a high-resolution TEM image displaying a lattice spacing of 0.28 nm corresponding to the (100) plane. cd High-resolution XPS spectra of MoS2 nanosheets: Mo 3d (c) and S 2p (d). ef Surface (e) and cross-sectional (f) morphologies of MoS2-PDDA membranes and the corresponding EDX mappings of N and Mo.

Results

Preparation of membranes

The development of MoS2-PDDA membranes involves a straightforward one-step process: the co-assembly of MoS2 nanosheets with PDDA intercalants into functional membranes via vacuum filtration. Chemical exfoliation yielded MoS2 nanosheets with a few-layer structure and an average lateral size of 450 nm (Supplementary Fig. 1). Transmission electron microscopy (TEM) reveals smooth, ultrathin, highly crystalline nanosheets with a lattice spacing of 0.28 nm, corresponding to the (100) plane (Fig. 1b). Generally, the exfoliation process favours MoS2 phase transformation from 2H to 1 T20,21,22. X-ray photoelectron spectroscopy (XPS) analysis confirms the predominance of the 1 T phase (Fig. 1c, d), further corroborated by a featureless UV–Vis spectrum (Supplementary Fig. 2). It is noteworthy that the spontaneous phase transition of 1T-MoS2 nanosheets back to the 2H form progresses at a relatively slow rate under ambient conditions (Supplementary Fig. 3). The electron-rich surface of 1T-MoS2 (around 0.25 electrons per Mo atom), attributed to electron doping during lithiation23,24, potentially facilitates strong affinity with positively charged species.

To fabricate the membranes, we mixed MoS2 nanosheets with PDDA at varying concentrations. This yielded stable binary dispersions, with tunable zeta potentials that transitioned from negative to positive (Supplementary Fig. 4). Notably, these dispersions exhibit remarkable stability, with no discernible agglomeration even after 60 days of storage. Subsequently, these dispersions were assembled into MoS2-PDDA membranes, where linear, flexible, and elongated PDDA chains were physically intercalated within the interlayer channels of the orderly stacked MoS2 nanosheets (Fig. 1a). By adjusting the PDDA concentration, we achieved precise control over the PDDA content within the resulting MoS2-PDDA membranes, ranging from 9.6 to 32.9 wt.% (Supplementary Fig. 5). Scanning electron microscopy (SEM) reveals that MoS2-PDDA membranes with 12 wt.% PDDA displayed a smooth, defect-free surface (Fig. 1e and Supplementary Fig. 6) and a compact, lamellar cross-section morphology (Fig. 1f and Supplementary Fig. 7). Energy-dispersive X-ray (EDX) mapping confirms the homogeneous distribution of PDDA within the MoS2 channels. While increasing PDDA content has a negligible influence on the surface morphology, it significantly affects membrane thickness and cross-section structure (Supplementary Figs. 6 and 7). Excessively high PDDA content like 32.9 wt.% appears to disrupt the regular stacking of MoS2 nanosheets. Moreover, membrane thickness exhibits a near-linear correlation with the filtered dispersion volume, enabling precise thickness control over the MoS2-PDDA membranes (Supplementary Fig. 8).

Characterization of interlayer channels

To investigate the microstructure of MoS2-PDDA membranes, we conducted X-ray diffraction (XRD) and grazing-incidence small-angle X-ray scattering (GISAXS) analysis. As shown in Fig. 2a, pure MoS2 membranes display a prominent (002) diffraction peak at 2θ = 14.8°, corresponding to an interlayer d-spacing of 6.0 Å. A broad lower-angle peak attributed to the (001) plane because of the adsorbed Li+ ion on the 1T-MoS2 region, is also observed, consistent with previous reports14,25. In contrast, PDDA incorporation (12.0 wt.%) into MoS2 membranes shifts the (002) peak to 2θ = 8.1°, expanding the d-spacing to 10.9 Å. Further investigation of PDDA content variation (9.6–21.7 wt.%) reveals a subtle influence on the d-spacing (Supplementary Fig. 9). Correlation of membrane thickness with d-spacings indicates that insufficient PDDA content results in non-expanded channels, while excessive PDDA loading leads to over-expanded counterparts (Supplementary Fig. 10). GISAXS measurement reveals that PDDA intercalation causes a downward shift in the arc from the diffraction projection signal of the (002) plane, from qz = 1.04 to 0.59 Å–1, indicating an expanded d-spacing (Fig. 2b, c and Supplementary Fig. 11). This finding aligns well with the XRD results. Moreover, the arc becomes more concentrated, suggesting improved stacking order of MoS2 nanosheets within the membrane (Schematic illustration in Supplementary Fig. 12). These findings suggest that the non-covalent intercalation of PDDA effectively preserves the long-range order of MoS2 channels, different from the observed stacking disorder caused by covalent functionalization18. By subtracting the thickness of a MoS2 monolayer (~6 Å)15,18 from the obtained d-spacings, we estimated the effective channel width (δ) of MoS2-PDDA membranes to be 4.8 Å in the wet state, an ideal dimension for water–ion selectivity. In contrast, pure MoS2 membranes possesses diminutive channels (δ < 0.2 Å) that are expected to be impermeable to water (Fig. 2d).

Fig. 2: Structural characterization and stability of interlayer channels.
figure 2

a XRD patterns of pure MoS2 and MoS2-PDDA membranes in the wet state. bc GISAXS images of pure MoS2 (b) and MoS2-PDDA (c) membranes. d Schematic illustration of the developed channel in pure MoS2 and MoS2-PDDA membranes. e XRD patterns of MoS2-PDDA membranes in various aqueous media. f Evolution of the interlayer d-spacing of the MoS2-PDDA membrane at varied pH levels represented by pure water, 0.01 M HCl, and 1 M H2SO4 over an extended period of immersion. g Comparison of the swelling percentage between the MoS2-PDDA membrane and other 2D membranes reported in the literature. Note that, unless otherwise specified, the PDDA content in MoS2-PDDA membranes is 12.0 wt.%.

Given the critical importance of size-fixed channels for real-world applications, we investigated the anti-swelling properties of MoS2-PDDA membranes. Membranes with lower PDDA content (9.6–16.7 wt.%) exhibit excellent structural stability and minimal swelling upon an extended water immersion over 60 days (Supplementary Figs. 13 and 14). By contrast, excessive PDDA intercalation (21.7 and 32.9 wt.%) leads to uncontrollable delamination. We further explored the anti-swelling stability of MoS2-PDDA membranes with 12.0 wt.% PDDA intercalation. Notably, they exhibit a consistent d-spacing with variations of less than 1 Å across various environments (Fig. 2e). Even in a highly acidic environment (1 M H2SO4), the membrane shows remarkable non-swelling stability over a 60-day period, substantiating their exceptional acid tolerance (Fig. 2f). The swelling percentage is merely 4.8% in water, surpassing most reported 2D membranes including covalently functionalized MoS2 membranes17 (Fig. 2g and Supplementary Table 1). These findings highlight the potential of our MoS2-PDDA membranes with non-swelling, acid-tolerant subnanochannels for practical water treatment, particularly in challenging acidic environments where many existing membranes fall short.

Chemical microenvironments of interlayer channels

The exceptional stability of MoS2-PDDA membranes in aqueous solutions, despite the absence of covalent crosslinking, prompts an in-depth investigation into the interfacial interactions within the nanoconfined channels. To probe the channel microenvironment, XPS analysis was conducted on MoS2-PDDA membranes with varying PDDA content. As shown in Fig. 3a, the peak centred at 402.1 eV is ascribed to the inherent C–N+ from the cationic QA moieties (for comparison, see the N 1s XPS spectrum of pure PDDA in Supplementary Fig. 15). Interestingly, an additional peak appears at 399.9 eV, which diminishes with the increase of PDDA content. This new peak can be ascribed to the partially neutralized C–N, due to electron density shifts from electron-rich 1T-MoS2 to the positively charged C–N+ under nanoconfinement. This electron density redistribution signals the existence of favourable interactions between the charged C–N+ and the 1T-MoS2 surface, which help to anchor the QA moieties to the 1T-MoS2 plane, simultaneously promoting the interlocking of adjacent MoS2 layers. Thus, the proportion of C–N serves as an indicator of this interlocking degree. A high PDDA loading (21.7 wt.%) exhibits a relatively low fraction of C–N within MoS2-PDDA membranes, well explaining their poor structural stability in aqueous solution (Supplementary Fig. 13). At an appropriate PDDA content (12.0 wt.%), the C–N percentage reaches 53.8% (Fig. 3b), corresponding to robust interlocking effect and superior structural stability. Concurrently, the percentage of 1T-MoS2 reduces to 41% (Supplementary Fig. 16). This interlocking effectively suppresses channel expansion and enhances the PDDA confinement. Furthermore, there are still abundant residual C–N+ sites, which impart positive charges to the channel and shift the surface zeta potential from negative to positive (Supplementary Fig. 17). More importantly, this dual chemical environment of QAs within MoS2 channels persists after 30-day immersion in both water and acid (Fig. 3c), as suggested by the well-maintained C–N/C–N+ ratio. The slight decrease in the C–N proportion following acid exposure may be attributed to competition between protons and QAs for interaction with 1T-MoS2, as protonation of 1T-MoS2 can lead to the formation of covalent S–H bonds14,26.

Fig. 3: Chemical microenvironments and in-channel interactions in MoS2-PDDA membranes.
figure 3

a High-resolution N 1s XPS spectra of MoS2-PDDA membranes with different PDDA contents. b The composition percentage of C–N+ and C–N in the MoS2-PDDA membrane (12.0 wt.% PDDA) obtained from the deconvoluted results of the high-resolution N 1s XPS spectrum. The inset illustrates the dual chemical environment of QAs within MoS2 channels. c High-resolution N 1s XPS spectra of the MoS2-PDDA membrane (12.0 wt.% PDDA) following exposure to water and acid (0.01 M HCl) for 30 days. d Binding energies between MDDA/MDDA, MDDA/1T-MoS2, and MDDA/2H-MoS2 determined by DFT calculations. e Binding energies between MDDA/1T-MoS2 under nanoconfinement as a function of interlayer d-spacing. The inset depicts two parallel 1T-MoS2 monolayers with tunable interlayer d-spacing, where MDDA is positioned adjacent to one monolayer plane. f Calculated charges of MDDA under different conditions: in bulk, in interaction with a 1T-MoS2 monolayer, and confined within a 1T-MoS2 channel featuring a d-spacing of 10 Å. The upper panel displays the charge density differences for MDDA/1T-MoS2 under nanoconfinement, with yellow and blue areas representing charge accumulation and charge depletion, respectively.

We further performed density functional theory (DFT) calculations to elucidate molecular-level interactions. For simplicity, it should be noted that PDDA is modelled as its monomeric repeating units (referred to as MDDA). The binding energies between MDDA/MDDA, MDDA/1T-MoS2, and MDDA/2H-MoS2, were first calculated respectively in a simplified one-on-one configuration, where a single MDDA molecule was stabilized near the surface of MoS2 planes (Fig. 3d and Supplementary Fig. 18). MDDA exhibits a repulsive interaction with itself, favouring a dispersed configuration within the channels. Conversely, a strong attractive interaction is observed between MDDA and MoS2, with 1T-MoS2 exhibiting a higher affinity for MDDA compared to 2H-MoS2. To highlight the nanoconfinement effect, we applied a one-between-two mode, positioning the MDDA molecule between two parallel 1T-MoS2 monolayers with adjustable interlayer d-spacing (Fig. 3e). The binding energy increases as the d-spacing decreases, particularly at d-spacing below 12 Å, consistent with our XRD observations. This underscores the effectiveness of the nanoconfinement effect in enhancing the structural stability of MoS2-PDDA membranes. Charge density distribution analysis in the nanoconfined space reveals considerable charge accumulation at the MDDA/1T-MoS2 interface (Fig. 3f). Bader charge analysis shows that the net charge of MDDA reduces to 0.76 |e|, indicating enhanced charge transfer compared to the non-confined case. This charge redistribution signifies an electron density shift from 1T-MoS2 to MDDA, governing the favourable interaction between MoS2 nanosheets and PDDA in MoS2-PDDA membranes.

Water and ion transport properties

Understanding the transport properties of water and ions across MoS2-PDDA membranes is crucial for evaluating their potential in water treatment applications. We assessed the separation performance of MoS2-PDDA membranes with varying PDDA contents using single MgCl2 solutions as the feed (Supplementary Fig. 19). Pure MoS2 membranes exhibit negligible water permeability due to their diminutive channel dimensions (Fig. 2d)12,15. The intercalation of PDDA as a “spacer” initially increases water permeance with the increase of PDDA content, and then plateaus at higher loadings. This behaviour can be attributed to the expansion of the channel width of ~ 5.2 Å in MgCl2 solutions (Fig. 2e). With a channel width larger than water molecules but smaller than hydrated Mg2+ ions (Supplementary Table 2), the membrane demonstrates high MgCl2 rejection. However, increasing PDDA content leads to a decrease in MgCl2 rejection, likely due to the excess PDDA hindering the formation of well-aligned 2D channels. Thus, the optimized PDDA content within MoS2 channels is determined as 12 wt.%. Subsequently, investigation of membrane thickness reveals that increased thickness results in reduced water permeance yet increased MgCl2 rejection, attributed to enhanced mass transfer resistance and simultaneous minimized defects27,28(Supplementary Fig. 20). With a thickness of 160 nm, the MoS2-PDDA membrane displays a MgCl2 rejection of 91.4% and a water permeance of 11.4 L m–2 h–1 bar–1, positioning it as the optimal candidate for subsequent study and optimization.

Unlike commercial nanofiltration membranes (e.g., NF270, DuPont), MoS2-PDDA membranes (12.0 wt.% PDDA) exhibit a unique salt rejection order: MgCl2 (91.4%) > NaCl (41.8%) > MgSO4 (18.9%) > Na2SO4 (11.2%), highly influenced by the cation-to-anion valence ratio (Z+/Z) of the salt (Fig. 4a). Given the larger diameter of the hydrated ions relative to the channel width (Supplementary Table 2), the observed ion transport behaviour cannot be solely explained by size sieving. Instead, charge effects including ion–water (i.e., ion hydration), ion–channel, and ion–ion interactions should be taken into account. Notably, the hydration shells surrounding the ions, which define their effective size, can be partially removed or rearranged to allow the passage of ions through narrow channels when favourable ion–channel interactions compensate for the energy cost of dehydration2,29. In our case, the electrostatic attraction between anions (e.g., SO42–) and positively charged QAs at the channel entrance is expected to facilitate ion dehydration and entry, while cations (e.g., Mg2+) will be repelled and are less likely to dehydrate and enter. Furthermore, the pairing between anions and cations to maintain charge neutralization, specifically the balance between the force repelling cations and the force attracting anions, determines the rejection for the salts. Since these forces depend on the ion valence, salt rejection shows a strong dependency on Z+/Z (refs. 30,31), that is, the salt with higher Z+/Z shows higher rejection and vice versa. To highlight the charge effects, we reduced the PDDA loading (9.6 wt.%) to decrease the positive charge density while maintaining the channel size (Supplementary Fig. 9). As expected, the salt rejection of this membrane becomes less dependent on Z+/Z, yielding declined MgCl2 rejection (66.9%) but enhanced rejection against MgSO4 (37.8%) and Na2SO4 (19.8%), due to weakened ion–channel interactions. Similarly, increasing feed concentration decreases MgCl2 rejection (Supplementary Fig. 21), as higher ionic strength effectively screens the charge, weakening ion–channel interactions. These observations confirm the crucial role of positive charges in the subnanochannels for the high rejection of multivalent cations.

Fig. 4: Water and ion transport properties, wastewater treatment performance, and operational stability of MoS2-PDDA membranes.
figure 4

a Comparison of MoS2-PDDA membranes (9.6 wt.% and 12.0 wt.% PDDA) and commercial nanofiltration membranes (i.e., NF270) in their rejection for the salts with different Z+/Z. b Percentages of permeated Mg2+ (in MgCl2) and SO42– (in Na2SO4) ions through a simulated channel of MoS2-PDDA membranes as a function of simulation time from MD simulations. c Schematic illustration of the repulsion of Mg2+ ions and the dehydration of SO42− ions. d RDF of water-O around SO42− and the corresponding coordination numbers of water molecules in both the feed solution and the membrane channels. e Salt rejection of MoS2-PDDA membranes and commercial nanofiltration membranes (i.e., NF270) as a function of their exposure in 1 M H2SO4 for different time periods. f Separation performance of MoS2-PDDA membranes in treating acidic wastewater containing heavy metal ions. g Long-term stability of MoS2-PDDA membranes under the crossflow operation. J0 and J denote the water permeance at 6 h and beyond 6 h, respectively, during the 141-h operation. The insert shows the photograph of the membrane in the module after testing. h Comparative analysis of the separation performance and acid stability of MoS2-PDDA membranes against previously reported acid-tolerant membranes. Note that, unless otherwise specified, the PDDA content in MoS2-PDDA membranes is 12.0 wt.%. R-Mg2+ represents the rejection for MgCl2. The error bars in this figure indicate the standard deviations of data obtained from at least three independent tests.

To gain further insights into the ion transport behaviour at the molecular level, molecular dynamics (MD) simulations were conducted on a slit-like channel model. The simulation system comprises of two horizontally aligned 1T-MoS2 monolayers with a d-spacing of 11 Å, incorporated with MDDA to mirror the channel microenvironment of MoS2-PDDA membranes. The simulated salt rejection order aligns well with our experimental findings (Supplementary Fig. 22), similarly showing a notable difference in the rejection rates of MgCl2 and Na2SO4 (Fig. 4b). Despite the large diameter of SO42– ions compared to the channel width, the low rejection of Na2SO4 suggests significant dehydration of SO42– upon entry into the channel, whereas Mg2+ ions undergo repulsion and are difficult to dehydrate and enter (Schematic illustration in Fig. 4c). Radial distribution function (RDF) analysis of water-O around SO42− confirms a reduction in the number of water molecules from 7.9 to 2.7 within its inner hydration shells, as indicated by weakened and shifted peaks (Fig. 4d). This dehydration is energetically compensated by the favourable attraction between SO42− and positively charged QAs in the channel. These observations collectively demonstrate the significant dehydration of high-valence counter-ions as they enter and diffuse within the positively charged channels built in our study.

Acid-tolerant stability and acidic wastewater treatment

As discussed, we have developed a straightforward non-covalent intercalation strategy that employs PDDA as a potent intercalant to functionalize MoS₂ membranes effectively. Unlike reported intercalants with limited functions, the intercalated PDDA performs multiple roles (Supplementary Table 3). First, PDDA acts as “spacers”, preventing the restacking of MoS2 nanosheets and defining the channel width of ~5 Å without disrupting the channel order, which is ideal for fast and selective water permeation. Second, PDDA serves as “regulators”, in which the cationic QA moieties within the channels transform the channel microenvironment from negative to positive, enabling regulated ion transport. Third, PDDA functions as “stabilizers” to interlock channels through strong non-covalent interactions, ensuring high stability of the resulting membrane across various aqueous media, particularly excellent acid tolerance under extremely acidic (1 M H2SO4) conditions. These characteristics have led us to assess the potential of MoS2-PDDA membranes for the treatment of acidic wastewater containing heavy metal ions.

We first evaluated the separation performance of MoS2-PDDA membranes at different pH levels and found that shifting the feed solution pH from 6.5 to 2.0 enhances water permeance with a negligible decrease in MgCl2 rejection (Supplementary Fig. 23). Then we examined acid tolerance of the membranes by monitoring the changes in their separation performance after exposure to 1 M H2SO4 over different durations. The MoS2-PDDA membranes display satisfactory acid-tolerant stability, as evidenced by the maintained MgCl2 rejection during prolonged acid exposure. In contrast, benchmark nanofiltration membranes (e.g., NF270) suffer severe performance degradation, due to the susceptibility of their polyamide chemistry to hydrolysis32,33 (Fig. 4e). Encouraged by this acid tolerance, we further explored the effectiveness of MoS2-PDDA membranes in treating acidic wastewater. In a continuous crossflow using simulated acidic wastewater (pH 2.0), the membrane exhibits high removal rates for various heavy metal ions, including Cr3+ (95.9%), Mn2+ (95.7%), Ni2+ (95.0%), Co2+ (96.2%), and Cu2+ (93.2%), coupled with a stable water permeance of 10 L m–2 h–1 bar–1 (Fig. 4f). Meanwhile, the membrane shows satisfactory antifouling properties, achieving a high flux recovery of 80% under acidic conditions (pH 2.0) when treating practical water from the Brisbane River (Supplementary Fig. 24). Operational stability, crucial for real-world applications, was further evaluated under continuous crossflow conditions, where the shear force may pose risks for the integrity of 2D membranes34. In such a challenging testing condition, the membrane demonstrates remarkable stability, with minimal performance degradation over 720 min (Supplementary Fig. 25) and less than 30% decrease in water permeance during a 141-h test (Fig. 4g). This decrease can be attributed to the compaction of MoS2 channels under long-term high-pressure conditions, as evidenced by the slight decline in the pure water flux at higher pressure (Supplementary Fig. 26). However, this compaction does not compromise the membrane rejection performance, maintaining a rejection of MgCl2 above 90% during this period. The membrane still maintains its structural integrity without visible delamination after long-term testing.

The separation performance, along with the acid tolerance, of the MoS2-PDDA membranes was compared with those of previously reported membranes. Our membranes demonstrate comparable separation performance with the state-of-the-art novel membranes including GO, MXene, MoS2, metal-organic framework (MOF), and covalent-organic framework (COF) membranes, and benchmark commercial nanofiltration membranes (Supplementary Fig. 27 and Supplementary Table 4). Notably, our membranes exhibit superior acid-tolerant stability, outperforming most of reported pH-resistant membranes (Fig. 4h and Supplementary Table 5). The combination of high selectivity, excellent stability, and sustained performance in acidic environments makes them highly competitive for acid-tolerant wastewater treatment under harsh conditions.

Discussion

We report the employment of multifunctional intercalants (i.e., PDDA) for engineering selective, stable subnanochannels in MoS2 membranes for wastewater treatment under harsh conditions. The intercalated PDDA in MoS2-PDDA membranes functions as a three-in-one intercalant, integrating the roles of “spacers”, “regulators”, and “stabilizers” simultaneously. First, PDDA acts as “spacers”, preventing the restacking of MoS2 nanosheets and defining the channel width at ~5 Å without disrupting the channel order, which is ideal for fast and selective water permeation. Second, PDDA serves as “regulators”, in which the inherently positively charged QA moieties transform the microenvironment from negative to positive, enabling selective ion transport enabled by the interplay of ion–water, ion–ion, and ion–channel interactions. Third, PDDA functions as “stabilizers” to interlock MoS2 channels through strong non-covalent interactions, ensuring high stability of the resulting membrane across various aqueous media, including pure water, salt solutions, and even strong acid (1 M H2SO4). The multifaceted roles of PDDA contribute synergistically to the exceptional separation performance and stability of MoS2-PDDA membranes in acidic wastewater treatment. This multifunctionality represents a feature not demonstrated by traditional intercalants reported in the existing literature. Importantly, the multifunctionality of intercalants is theoretically broad and holds potential for application to other transition metal dichalcogenides and QA-bearing molecules. Overall, the development of multifunctional intercalants for functionalizing 2D membranes provides critical insights into the design of task-specific membranes for demanding applications, advancing our understanding of the functionalization–structure–performance relationship in 2D membranes.

Methods

Chemical exfoliation of MoS2 nanosheets

MoS2 nanosheets were prepared via lithium intercalation22, as described below. First, 1 g of MoS2 bulk powder was mixed with 10 mL of an n-butyllithium hexane solution, followed by stirring in a nitrogen atmosphere at room temperature for 48 h. Next, the obtained MoS2 colloidal suspension was filtered and then washed with hexane several times. Subsequently, the lithium-intercalated MoS2 (LixMoS2) powder was exfoliated in deionized water via sonication for 1 h. Finally, the solution was centrifugated at 10,000 rpm and 5000 rpm to remove lithium ions and unexfoliated particles, respectively. The as-synthesized MoS2 nanosheets with a concentration of 0.25 mg mL–1 were stored at 4 °C.

Fabrication of MoS2-PDDA membranes

First, PDDA solution with different concentrations was mixed with the diluted solution of MoS2 nanosheets, forming a binary dispersion with MoS2 concentration of 10 mg L–1 and varied PDDA concentration (0–10 mg L–1). Then, the as-prepared MoS2-PDDA dispersion was vacuum-filtrated through a porous PES substrate with nominal pore size of 100 nm, allowing the co-assembly of MoS2 nanosheets and PDDA. MoS2-PDDA membranes were finally obtained after drying under vacuum at 40 °C for 4 h. Membrane thickness can be easily tuned by altering the filtration volume of MoS2-PDDA mixture.

Characterizations

The morphology of prepared MoS2 nanosheets was observed using field emission TEM (JEM-2100F, JEOL, Japan). The thickness and lateral size of MoS2 nanosheets were determined using atomic force microscopy (AFM, Dimension Icon, Bruker, USA) operated in tapping mode. A UV–Vis spectrophotometer (UV1800, Shimadzu, Japan) was employed to detect the UV–Vis absorption of MoS2 nanosheets in the aqueous solution. Zeta potentials of MoS2-PDDA mixture were measured using a Zetasizer (Zetasizer Nano, Malvern Instruments, UK). The surface and cross-sectional morphologies of prepared MoS2 membranes were investigated using field emission SEM (GeminiSEM 500, ZEISS, Germany), and the elemental distribution was detected using the equipped EDX spectrometer (Aztec X-Max Extreme, Oxford Instruments, UK). XRD patterns of prepared MoS2 membranes were recorded using an X-ray diffractometer (TTR-III, Rigaku, Japan) with Cu Kα radiation (40 kV, 200 mA) in the 2-theta range of 3–25° at a step size of 0.02° and a recording rate of 0.15 s. GISAXS measurement was performed on a Xeuss 2.0 system (XENOCS, France), irradiated at a grazing angle of 0.12°. XPS (Kratos Axis Supra+, Japan) with a monochromatized Al Kα X-ray source at 1486.6 eV was used to analyse the phase of exfoliated MoS2 nanosheets and the surface chemistry of prepared MoS2 membranes. The surface zeta potentials of MoS2 membranes were measured by an electrokinetic analyser (SurPASS 3, Anton Paar, Austria) using 1 mM KCl as the electrolyte solution.

Density functional theory (DFT) calculations

All the DFT calculations were performed using the generalized gradient approximation of the Perdew-Burke-Ernzerhof functional within the Vienna Ab Initio Simulation Package 6.1 (VASP)35. The core-valence interaction was represented by the projector augmented wave approach36, and the energy cutoff for the plane wave was set to 400 eV. The Brillouin zone integration was sampled with Monkhorst mesh of 2 × 2 × 1 for all the geometry optimizations. The energy and force riteria for electron density convergence were set to 10–4 eV and 0.05 eV Å–1, respectively. MoS2 monolayers of both 1 T and 2H phases were built with 16 Mo atoms and 32 S atoms. PDDA was represented by its monomeric repeating unit (MDDA). After optimizing the interaction configurations, the binding energies between MDDA/MDDA, MDDA/2H-MoS2, and MDDA/1T-MoS2 in a one-on-one mode was calculated. Furthermore, the interaction energies between MDDA/1T-MoS2 in a one-between-two mode was calculated, where MDDA is positioned between two parallel 1T-MoS2 monolayers with adjustable interlayer d-spacing from 20 to 10 Å. Taking the MDDA/1T-MoS2 system as an example, the binding energy was calculated using Eq. (1),

$$\Delta E= E\,\left(1{\mbox{T}}{\mbox{-}}{\mbox{Mo}}{{\mbox{S}}}_{2}/{{\mbox{H}}}_{2}{\mbox{O}}/{\mbox{MDDA}}/{{\mbox{H}}}_{2}{\mbox{O}}\right)\\ -E\,\left(1{\mbox{T}}{\mbox{-}}{\mbox{Mo}}{{\mbox{S}}}_{2}/{{\mbox{H}}}_{2}{\mbox{O}}\right)-E\,\left({\mbox{MDDA}}/{{\mbox{H}}}_{2}{\mbox{O}}\right)$$
(1)

where E (1T-MoS2/H2O/MDDA/H2O) represents the total energy of a combined system of a 1T-MoS2 monolayer and an MDDA molecule in water, whereas E (1T-MoS2/H2O) and E (MDDA/H2O) represents the energy of a 1T-MoS2 monolayer and an MDDA molecule in water, respectively. Moreover, the Bader charge analysis was conducted for the MDDA/1T-MoS2 system in the one-between-two mode at a fixed interlayer d-spacing of 10 Å.

Evaluation of separation performance

Separation performance of prepared MoS2 membranes and benchmark commercial nanofiltration membranes (e.g., NF270 and NF90) was evaluated using a laboratory-made crossflow filtration system with an effective filtration area of 2.5 cm2. The testing was conducted under applied pressure of 4 bar at room temperature with a crossflow rate of 80 L h–1. Aqueous solutions of MgCl2, MgSO4, NaCl, or Na2SO4 (1 mg mL–1, without pH adjustment) and simulated acidic wastewater containing MnCl2, NiCl2, CoCl2, CuCl2, or CrCl3 (0.1 mg mL–1, pH = 2) were used as the feed solution. All the membranes were compacted for 1 h to ensure a steady state before collecting the permeation solution. The water permeance (J, L m–2 h–1 bar–1) was calculated using Eq. (2),

$$J=\frac{V}{A\times t\times \Delta P}$$
(2)

where V (L) is the volume of permeated solution, A (m2) the effective membrane area, t (h) the permeation time, and ΔP (bar) the applied pressure. The salt rejection (R, %) was determined according to Eq. (3),

$$R=\left(1-\frac{{c}_{{\mbox{p}}}}{{c}_{{\mbox{f}}}}\right)\times 100\%$$
(3)

where cp and cf are the solute concentrations of the permeate and feed, respectively. The salt concentration of MgCl2, MgSO4, NaCl, and Na2SO4 was determined by a conductivity metre (DDBJ-350, Shanghai Leici Instrument Company, China), while the accurate metal ion concentration was quantified by inductively coupled plasma optical emission spectrometry (ICP-OES, Optima 7300 DV, PerkinElmer, USA).