Introduction

The precise fabrication of nm and sub-nm pores in ultrathin films (one to several atomic layers) will enable membranes with both high selectivity and permeance. The transport behavior of ions and small molecules confined to nm-scale pores or channels found in such membranes differs dramatically from that measured in bulk liquids. Under confinement, the discrete nature of molecules and atoms, ionic correlations, and long-range electrostatic interactions as well as specific adsorption play large roles in the overall dynamics1,2,3,4,5, which can be manipulated via the nanopore characteristics to optimize species selectivity. If successfully fabricated on a large scale, nanoporous membranes would be applicable to fuel cells, osmotic power generators, and separation processes6,7,8,9,10,11. They would be especially useful for ion separations, which can enable efficient water decontamination, water softening, and resource recovery from aqueous solutions12,13,14,15,16,17,18,19,20.

To date, the fabrication of arrays of nm pores on ultrathin membranes made from two-dimensional (2D) materials, such as graphene and transition metal dichalcogenides, has been demonstrated with electron and ion irradiation, as well as oxygen plasma etching21,22,23,24,25,26,27. These methods have been used to create pores in the sub-nm range but have drawbacks including the complexity of the instruments involved and significant pore-size variation within a given device. Nanopores can also be fabricated in ultrathin membranes via bottom-up methods by introducing defects during crystal growth21,28,29. All of these membrane fabrication techniques are based on ex situ methods, which suffer from pore blocking by trapped nanobubbles, the introduction of ambient contaminants, and often display a large degree of variation between devices30,31.

Moreover, the resulting 2D material membranes have yet to demonstrate significant selectivity for different cations, especially of the same charge, even though they are excellent at separating cations from anions2,4,7,14,20,32. Without adding additional active elements, such as conical nanoporous substrates33 or nanobubbles31, the selectivity (the higher permeance of one ion relative to all others) of nanoporous 2D material membranes for monovalent ions (K+, Li+, Na+ and Cs+) has remained around two (after accounting for trends in bulk mobility)21,25,34. Existing methods and starting material design have limited the performance of nanoporous membranes. Furthermore, these methods have been applied to only monolayer (never few-layer) membranes, limiting the intrinsic selectivity. Computational efforts also have mainly focused on the transport properties of ions in monolayer membranes and have identified the effect of ion dehydration as the primary driver of selectivity35,36. There has been little work studying the interplay between ion transport and water dynamics, however, which we find is one of the driving factors for monovalent cation selectivity in our few-layer nanoporous films.

Here we develop an in-situ fabrication method to generate (sub)nm pores with tunable pore size and density by applying a transverse electric field across polycrystalline membranes. This method exploits the electrostatic and electrochemical effects from the strong electric field formed across the 2D semiconductor, molybdenum disulfide (MoS2) with the configuration of electrolyte gating37. The porosity is determined by the strength and duration of the applied electric field, as well as the atomic features of the starting material. Using few-layer mechanically exfoliated MoS2 and vertically aligned MoS2 films for comparison, we pinpoint the critical role of grain boundaries in polycrystalline MoS2 for the generation of nanopores. We demonstrate an all-solid-state membrane with average pore size ranging from <1 nm to ~4 nm in diameter via in situ tuning. Our pore fabrication procedure expands the total pore area at a rate down to ~0.2 nm2 s−1, allowing us to control the pore sizes with sub-nm precision.

Previous work has shown that nm-scale pores can be formed electrochemically in 2D materials, such as MoS2 and graphene38,39. Single pores, as well as porous membranes, can also be formed electrochemically in thin films such as SiN, although the mechanism in this case differs from that in 2D materials such as MoS240,41,42. For SiN, the application of large voltages leads to a sudden controlled dielectric breakdown, resulting in localized heating and subsequent material degradation. In MoS2, the application of order-of-magnitude smaller voltages leads to a gradual localized electrochemical etching at specific hot-spots, likely grain boundaries or sulfur vacancies38.

In all previous accounts with 2D materials, the pores are formed one at a time, which is beneficial for certain sensing applications43, but could be a shortcoming for ion-separation membranes. Here, we demonstrate for the first time that, with the nanoscale features of polycrystalline MoS2, densely porous membranes can be fabricated in situ with sub-nm control. Furthermore, we demonstrate that pores in multi-layer films can be formed electrochemically, whereas in previous studies only monolayers were used. We show that pore creation in single-crystal, few-layer MoS2 is significantly more difficult to control.

Owing to its combination of high surface charge density, tight pore-size distribution, and nm-scale thickness, MoS2 nanoporous membranes demonstrate selective transport of both monovalent and divalent cations. The level of ion selectivity of nanoporous, few-layer MoS2 membranes is among the highest for ultrathin solid-state membranes to date, compared to reported membranes with similar absolute conductance. We use classical molecular dynamics (MD) simulations to elucidate the mechanism of the experimentally measured ion selectivity. We find that the unique interactions between cations and the sluggish water confined to the pore, as well as cation-anion interactions combine to result in qualitatively different transport behavior for KCl, NaCl, LiCl, CaCl2 and MgCl2 through nanoporous MoS2. Such behaviors are suppressed in monolayer films, explaining the high selectivity measured in this study compared to existing literature using monolayer graphene and MoS2 membranes21,25,34.

Results

Pore creation in polycrystalline MoS2 films

We choose MoS2 as our starting material due to its nm-scale thickness, its electrochemical activity and tunability via the material synthesis parameters. The crystallinity of the pristine membrane determines its response under an applied electric field. Grain boundaries and edge sites, with dangling bonds and defects, are well-known chemically active sites in MoS2, whereas the basal plane of MoS2 is relatively inert44,45. We hypothesize that the boundaries between MoS2 crystallites act as seeding points where, upon partial degradation, pores are formed. Therefore, chemical vapor deposition (CVD) grown few-layer MoS2 films (CVD-MoS2) with a high-density of grain boundaries and mechanically exfoliated MoS2 (ME-MoS2), which are single-crystalline, are chosen for direct comparison.

Few-layer (~8 nm) MoS2 films are grown via molybdenum sputtering and subsequent sulfurization46,47,48. Both ME- and CVD-MoS2 are transferred to a silicon nitride (SiN) chip with a single 300–500 nm diameter pore, over which the film is freely suspended (Supplementary Fig. 1). Atomic Force Microscopy (AFM) images show that the CVD-MoS2 films have nanoscale surface topography due to the polycrystalline nature of the thin film, in contrast to ME-MoS2, which is atomically smooth, absent blisters and wrinkles (Supplementary Fig. 2). We choose sub-micron apertures for all experiments below, but we note that the transfer method and pore fabrication methods reported here are scalable to significantly larger areas. The CVD-MoS2 films, despite the large density of grain boundaries, can be suspended over micron-scale apertures (Supplementary Fig. 3). High-resolution scanning transmission electron microscopy (STEM) imaging is conducted on both CVD- and ME-MoS2. Real-space images and selected-area electron diffraction (SAED) of ME-MoS2 confirms the single crystalline nature of the thin film (Fig. 1a, b). In stark contrast, CVD-MoS2 is highly polycrystalline with nm-scale domains as shown in the scanning transmission electron microscopy (STEM) image and SAED (Fig. 1c, d). The grain boundaries in CVD-MoS2 can extend entirely through the membrane, as evidenced by cross-section transmission electron microscopy (TEM) (Fig. 1e). Although chemically active sulfur vacancies exist in ME-MoS2, they are unlikely to stack vertically from layer to layer and thus cannot enable pore formation in multilayer films49,50. CVD-grown monolayer MoS2, tested in a previous work38, has similar behavior to CVD-grown polycrystalline MoS2, likely because S vacancies accelerate the electrochemical formation of single isolated pores.

Fig. 1: Electrochemical pore creation in polycrystalline, few-layer MoS2 as compared to mechanically exfoliated few-layer single crystals.
figure 1

STEM images and cartoons of few-layer single crystal ME-MoS2 (a, b) and polycrystalline CVD-MoS2 (c, d) with diffraction patterns inset. Continuous rings evident in the CVD-MoS2 diffraction pattern indicate that the grains are randomly rotated in-plane with respect to each other, and Moiré patterns evident in real-space images indicate that grains are partially overlapping. e Cross-section TEM image of polycrystalline MoS2, with a grain-boundary marked in red. f Change in ionic current for a given (constant) bias voltage applied across the membrane. A rapid, but controllable, increase in current is apparent for CVD-MoS2 at 0.4–0.5 V (inset), whereas a significantly more rapid, and difficult-to-control breakdown occurs for ME-MoS2 at 1.75-2 V. Partial oxidation of the film does not have a significant effect on the breakdown voltage. Device schematic is inset, showing ion accumulation leading to large electric fields across the membrane. g Polycrystalline MoS2, after electrochemical etching, showing a single (out of many) ~1 nm diameter pore. Scale bars are 5 nm in a, c and g; 2 nm-1 in (a) and (c) inset; and 10 nm in e. Source data for (f) are provided as a Source Data file.

The SiN chips with MoS2 films are mounted in a custom flow cell and separate two reservoirs with 1 M KCl electrolyte, electrically connected with Ag/AgCl electrodes (Fig. 1f, inset). The as-transferred MoS2 films are impermeable to K+ and Cl- ions, in agreement with previous work7,25,38 (Supplementary Fig. 4). Nanopores are created by the application of a remote electric field across the membrane (the membrane itself is not connected to the electrical circuit). The bias across the membrane leads to charge accumulation and corresponding membrane polarization51. Past a threshold voltage, the large interfacial electric field across the membrane induces the removal of atoms from the MoS2 films resulting in the formation of (sub)nm pores.

For CVD-MoS2, as the bias voltage exceeds the threshold value of 0.4–0.5 V, the ionic current through polycrystalline MoS2 increases rapidly and irreversibly (Fig. 1f, Supplementary Fig. 4). With increasing voltage, the rate of increase rises. The breakdown voltage of ME-MoS2 is significantly larger than that of CVD-MoS2 and the high threshold voltage required for ME-MoS2, results in rapid and unpredictable etching. The minimum rate of current change for ME-MoS2 (~2 nA s-1 at 1.7 V) is ~20 times that of CVD-MoS2 (~0.1 nA s-1 at 0.4 V), making the process much less controllable. To isolate the role of film morphology over surface chemistry or wettability, we subject both CVD and ME-MoS2 films to remote O2 plasma treatment. The O2 plasma partially oxidizes the top-surface of the MoS2 films, without destroying the overall integrity (Supplementary Fig. 1)52. After plasma treatment, the voltage gap between the threshold of CVD and ME-MoS2 remains. As shown in Fig. 1g, we find that the polycrystalline MoS2 films are amenable to the controllable fabrication of ~1 nm diameter pores. Using a simple one-pore model (Supplementary Methods), we determine that, at a threshold voltage of 0.4–0.5 V, the total pore area increases at a rate of ~0.2 nm2 s-1.

The importance of grain boundaries is also confirmed with vertically aligned CVD-MoS2 films, which are grown using a thicker Mo seed layer (in this case 15 nm)47. In the vertically aligned CVD-MoS2 films, the MoS2 layers are easily identifiable via TEM imaging (Supplementary Fig. 5). The relative orientations of these layers can then be used to distinguish neighboring grains. After electric field driven pore creation, we find that the MoS2 degrades predominantly at grain boundaries, further confirming our hypothesis that the exposed atoms at the grain boundaries are more electrochemically active (Supplementary Fig. 5). We conclude that, in contrast to isotropic etching, our technique leaves the CVD-MoS2 lattice mostly intact, with pores forming preferentially at grain boundaries.

The dimension of the pores can be controlled via external field strength and application time. In the following, we tune the porosity by applying discrete pulses above the threshold voltage. The morphology of the films after a single 5 ms, 1.5 V pulse and after many 10 ms, 1.5 V pulses differ dramatically, which we characterize with ex situ STEM (Fig. 2a–f). By applying a series of voltage pulses, we increase the porosity, and therefore the conductance, of the film (Fig. 2g–i). We determine the upper limit of the pore diameter by identifying and then imaging the few largest pores in a given membrane. In Fig. 2a, the largest pores of a film subjected to a single etching step are outlined, and their corresponding high-resolution images shown in Fig. 2b, c, where none exceed 1.5 nm in diameter. This pore size is suitable for the separation of small ions, which we demonstrate in the following section. A film subjected to 10 pulses is shown in Fig. 2d–f, where the largest pore is ~4 nm in diameter, which could be suitable for the separation and detection of macromolecules (such as proteins or nucleotides)43,53.

Fig. 2: Nanopore characterization and in situ tuning.
figure 2

STEM images of porous MoS2 after (ac) a single electrical pulse of 5 ms at 1.5 V and after (df) ten electrical pulses of 10 ms each at 1.5 V. Only the few largest pores are identified, and images taken, as these pores dominate the ionic current through the membrane. g IV traces and their corresponding conductance values (h) taken after each pulse for the film shown in (df). i Pore size distributions for four different membranes, with different conductance values (G) after different numbers (N) of 1.5 V, 5–10 ms voltage pulses. Error bars for the pore sizes in (i) are determined by the pixel size of the corresponding STEM images. Scale bars are 100 nm in (a) and (d) and 5 nm in (b, c) (e, f). Source data for (gi) are provided as a Source Data file.

We calculate pore size distributions for four different membranes via segmentation and thresholding of images of the entire free-standing MoS2 area (Supplementary Fig. 6). The pore-size distributions (Fig. 2i) for membranes with larger conductance values have more (going from ~100 – ~2000 pores µm-2 for 1 – 10 pulses) and larger (from ~5 Å to 4 nm) pores, indicating that the applied electric field simultaneously forms new pores and expands existing pores. The measured conductance of KCl through the membranes is in approximate agreement with the expected conductance for a given size distribution (Supplementary Fig. 7), indicating that the membrane is mostly unobstructed, and the ionic current is determined by the porosity of the membrane as opposed to trapped contaminants or bubbles.

Ion transport characterization

The size of the MoS2 nanopores ( ~ 5 Å - 4 nm) fabricated here are commensurate with the diameter of hydrated ions ( ~ 7-9 Å). As such, the unique solvation characteristics of ions are paramount in determining their dynamics confined in the MoS2 membrane54. The transport behaviors of five different salts (1 M KCl, NaCl, LiCl, MgCl2 and CaCl2) are probed by measuring current-voltage traces for a given membrane. We find that, across all 15 devices tested for KCl/MgCl2 selectivity, the conductivity ratio between KCl and MgCl2 increases dramatically with membrane resistance to KCl (Fig. 3a, Supplementary Table 1), and correspondingly with respect to decreasing pore size. By comparing the conductance values of the 15 (horizontally aligned) devices tested for KCl/MgCl2 selectivity to the corresponding pore size distributions calculated separately in Fig. 2, we determine that past a maximum pore size of ~3 nm, the selectivity approaches unity. This trend holds for thicker, vertically aligned MoS2 films (Supplementary Fig. 9). Variation between devices generally can be ascribed to differences in pore size distributions as a result of the electrochemical etching process, which could be improved by controlling the domain uniformity of the CVD grown MoS2 film. After pore generation, smaller pore sizes lead to both lower conductivities and higher selectivity, as discussed above in Fig. 2. Each device tested has a slightly different pore size distribution, and thus slightly different ion transport characteristics. I–V curves for all devices can be found in Supplementary Fig. 8, Supplementary Fig. 10 and Supplementary Fig. 11.

Fig. 3: Ion transport measurements in MoS2 nanopores.
figure 3

a KCl/MgCl2 selectivity for all 15 horizontally aligned CVD-MoS2 devices tested, plotted against membrane resistance to KCl. The dotted red curve is a guideline. The MgCl2 conductance for the datapoint with the highest KCl/MgCl2 selectivity is below our detection limit, and thus we can only establish a lower bound. b Representative IV curves used to determine the membrane conductance values (this set corresponds to Device 12). c Ion conductance values for three devices, showing enhanced conductance of KCl relative to all other salts even after (d) scaling using bulk conductance values. e Unnormalized conductance ratio of KCl and LiCl plotted against conductance of 1 M KCl through existing nanoporous 2D material membranes (see Supplementary Table 3). f Interactions between KCl and MgCl2. Blue curve shows measured conductance values as a function of K+ to Mg2+ molar ratio. Black curve shows the predicted values, assuming KCl and MgCl2 do not interact with the other cation or the membrane, calculated using the pure KCl and pure MgCl2 conductance measurements. Red markers show that the bulk conductance changes <5% as a function of the K+ to Mg2+ molar ratio. Error bars in (b) are given by trace-retrace (N ≥ 3) for all curves. Error bars in (c, d) (f) are determined by cycling through electrolytes (N ≥ 2), with multiple (N ≥3) IV curves measured for each electrolyte. Source data for (bd) and (f) are provided as Source Data files. Source data for (a) and (e) are provided in Supplementary Information.

We test the conductance of the entire suite of salts in a smaller subset of three membranes, measuring multiple current-voltage traces for each salt (Fig. 3b). Again using Fig. 2 as a reference, we conclude that the pores in these devices are in the 5 Å-2 nm range. For each membrane, we measure the conductance going from small to large hydration enthalpy (K+ to Mg2+), then back from large to small (Mg2+ to K+) to avoid artifacts from slow changes in conductance due to pore fouling (Supplementary Fig. 10). We find that the conductance of all salts through the MoS2 nanopores is suppressed relative to KCl (Fig. 3c). We also test the relative conductance Cs+ and Rb+ in a separate device and find that the trend (reduced conductance for increased hydration radius) continues for Rb+ and matches previous work32,35 for Cs+ (Supplementary Fig. 11).

We define the pore-induced selectivity, accounting for differences in bulk conductivity, as

$${S}_{p,{{{\rm{i}}}}}=\frac{{G}_{i}}{{G}_{{kcl}}}\frac{{k}_{{kcl}}}{{k}_{i}}$$
(1)

where \({{{{\rm{G}}}}}_{{{{\rm{i}}}}}\) and \({G}_{{kcl}}\) are the measured conductance of a given salt and of KCl, respectively; and \({k}_{i}\) and \({k}_{{kcl}}\) are the bulk conductance of a given salt and of KCl, respectively. Even after accounting for the contribution of the bulk conductance, the selectivity remains (Fig. 3d). We emphasize in particular the selectivity between the monovalent salts KCl, NaCl and LiCl, which is among the highest in ultrathin 2D material membranes to date. The ion selectivity of thicker, layered membranes with angstrom-scale 2D channels, such as those made from liquid-phase exfoliation of graphene and MoS2, tends to be higher (Supplementary Fig. 13). Due to the high density of nanopores in the polycrystalline MoS2 films, the absolute conductance is a factor of >2 higher than nanoporous membranes with the same selectivity (Fig. 3e). This enhancement may also be a result of the fact that, because we test few-layer as opposed to monolayer 2D material membranes, a similar selectivity can be achieved with larger pore diameters, a point which we corroborate using MD simulations in the following section.

It is well-established that under nm-scale confinement, ion-ion correlations play a large role in the transport behavior of charged species55. We cannot assume, therefore, that the difference in conductance between salts is a function of the cation mobilities alone. To isolate the relative contributions of cation and anion to the total current, we measure the membrane potential with 1 M and 0.1 M electrolytes in the two reservoirs, which is easily translated into the transference number, \({t}_{+}\)(Supplementary Methods). For monovalent ions, the current is dominated by the cation (\({t}_{+} \sim\) 0.8) and to similar degrees for KCl, NaCl and LiCl (Supplementary Fig. 15). It is surprising that the cation/anion selectivity is similar for LiCl and KCl, given the lower overall conductance of LiCl. The puzzle is resolved however, when considering that as the nanopore is occupied by cations the negative surface charge is partially screened, reducing the energy barrier for anions: a higher concentration for K+ inside the nanopore results in a higher concentration of Cl-. This theory is verified in the following section using MD simulations. The transference number for the divalent ions (\({t}_{+} \sim\) 0.3) is suppressed relative to the monovalent ions. The mechanism of this qualitative shift is elucidated by observing that the presence of Mg2+ in a mixed KCl/MgCl2 solution suppresses the conductance of K+ (Fig. 3f), indicating that Mg2+ is adsorbed on or is stuck inside the MoS2 membrane. The adsorbed cation reduces the magnitude of, or possibly inverts, the intrinsically negative surface charge, creating a more (less) favorable environment for the anion (cation).

Molecular dynamics simulations: mechanisms of selective ion transport

To further understand the dynamics of ions and unveil the origin of ion selectivity in the MoS2 nanopores, we carry out classical MD simulations. In the simulations discussed below, two reservoirs with equal concentration of 1 M KCl, NaCl, LiCl or MgCl2 are separated by a single (1L) or six-layer (6L) MoS2 film through which a 1 or 2 nm pore is drilled (Fig. 4a–c). The pore is terminated by both Mo and S atoms to approximate the most likely pore configuration, as was recently measured experimentally23, and a negative partial charge is added to all terminating atoms to fix the surface charge at -50 mC m-2 7. A constant electric field is applied perpendicular to the membrane to generate net ion flux through the film. Further simulation details can be found Supplementary Information Methods.

Fig. 4: MD simulation results for ion transport in MoS2 nanopores.
figure 4

MD simulation snapshots of a (a) 6L-1 nm MoS2 film and (b) 1L-1 nm film separating two 1 M KCl reservoirs. Dotted black lines indicate locations of the first and second solvation shell of a Mg2+ ion. A single pore (c) is drilled in the center of all MoS2 films. d Ion selectivity for KCl, NaCl, LiCl and MgCl2 for 6L-1 nm, 6L-2 nm and 1L-1 nm MoS2. Decomposition of the total current into its (e) cationic and (f) anion components. Cations are normalized to their bulk mobility values, and anions scaled by their total concentration (a factor of two higher for MgCl2). g Probability density functions, normalized to K+, for each cation inside the 6L-1 nm pore. Three distinct regions are apparent, corresponding to different hydration levels. h Cationic current as a function of radial position for all four cations. The current is dominated by the ions in the one-layer water region, even though a higher concentration of cations for K+ can be found directly adjacent to the pore. i Radial profiles of the water diffusion coefficient in the 6L-1 nm and 6L-2 nm pores (without the presence of an applied bias or ions) as compared to the diffusion of water in the bulk reservoir. The diffusion of water in both pores is suppressed, especially near the pore edges, but is significantly more suppressed for the 6L-1 nm pore. Error bars in (df) are given by the standard error of the given parameter measured over the entire simulation trajectory. Ion trajectory data for (dh) and full trajectories for (i) are provided as Source Data files.

We first calculate the total ionic current for each salt through 6L-1 nm, 6L-2 nm and 1L-1 nm MoS2. After accounting for the bulk conductivity using Eq. (1), the transport of KCl through 6L-1 nm MoS2 is significantly enhanced over LiCl (\({S}_{p}=0.67\)) and MgCl2 (\({{{{\rm{S}}}}}_{{{{\rm{p}}}}}=0.54\)) and is slightly higher than NaCl (\({{{{\rm{S}}}}}_{{{{\rm{p}}}}}=0.92\)), in qualitative agreement with our experimental results (Fig. 4d). We see no such selectivity for either 6L-2 nm MoS2 or, surprisingly, 1L-1 nm MoS2.

The ionic current is proportional to the average drift velocity of the ions and the total ion concentration (Supplementary Methods). Analyzing 6L-1 nm MoS2, we observe that the average velocities of Li+ and Na+, relative to that of K+ after accounting for bulk mobility, are undiminished and the velocity of Mg2+ only marginally so; at first glance, it appears that the selectivity between cations (Fig. 4e) derives from number of charge carriers (ion concentration), which we find varies significantly (Supplementary Table 4). The variation in the number of charge carriers is explained by the ability of each ion to enter the pore, which in turn is based on the ease with which it sheds its first and second hydration shells. This mechanism is the common explanation for various exotic effects in ion transport21,35,36. As we explain below, however, concentration inside the pore is not the ultimate cause of cation selectivity.

The probability density function (PDF) of ions inside 6L-1 nm MoS2 has three distinct regions, corresponding to three discrete ion hydration levels: ions in direct contact with the pore wall (region I), ions separated from the wall by a single water layer (region II) and ions separated from the wall by two water layers (region III) as shown in Fig. 4g. The distance between peaks in the PDF and the location of the first water (Ow) layer correlates with the associated Mx+-OW coordination distance in the bulk (Supplementary Fig. 16). As determined by the PDFs displayed in Fig. 4g, only K+ (and Na+ but to a significantly reduced degree) occupies region I, corresponding to direct ion-wall contact. Na+, Li+ and K+ all show significant density in region II, whereas Mg2+ is only able to occupy region III, corresponding to two water layers between the ion and the pore wall. We also perform simulations with CaCl2 and find that the behavior of this salt is nearly identical to that of MgCl2 (Supplementary Fig. 18). These results match expectations, given the relative hydration energies of the different cations56. The concentration of K+ is higher because it occupies a larger fraction of the pore.

The K+ ions in direct contact with the pore wall do not, however, contribute significantly to the current, as they are trapped at the surface and their mobility approaches zero (Supplementary Fig. 19b). Instead, the vast majority of the current for all ions is from the second and third regions, where ions are separated from the pore wall by one to two layers of water (Fig. 4h). Looking at these regions alone, we see that even though the monovalent ions have similar concentrations, the K+ current outstrips that of Na+ and especially Li+. After normalizing by bulk mobility, the average velocity of monovalent cations goes as K+ > Na+ > Li+ (Supplementary Fig. 17) for this region. The observed selectivity between ions is not a function of the equilibrium concentration inside the pore, as was hypothesized previously, but is a dynamical process wherein the hydration energy of a given cation affects its mobility in the one- and two-layer of water region of the pore.

This dynamical effect is based on the relative ease with which a given cation exchanges its inner hydration shell and is impacted by the position the ion occupies inside the pore. We find that water molecules inside the 6L-1 nm MoS2 pore have a significantly reduced diffusion coefficient relative to that measured in the 6L-2nm MoS2 or the bulk reservoir (Fig. 4i, Supplementary Fig. 20). Water molecules, due to their interaction with the pore wall, are nearly trapped in place and are unable to travel with the transporting ion (Supplementary Fig. 21). This has two effects: first, ions closer to the wall move more slowly. The selectivity between K+ and Na+ is a result of their relative preferred positions in the pore: K+ is closer to the center, where the water moves more freely and enables the ion to move faster (Fig. 4i). Second, the sluggish water makes the rapid exchange of the inner hydration shell a larger component of ion mobility compared to the bulk case, where the inner hydration shell is partially carried along with the ion57. We calculate the energy penalty for the exchange of the inner hydration shell for each cation by performing a Boltzmann-inversion on the cation-oxygen radial distribution functions; matching the drift velocity results, the order goes as K+ ~ Na+ < Li+ < Mg2+ (Supplementary Fig. 22). We conclude that inter-cation selectivity is determined by the preferred ion position and the rate of hydration shell exchange in the uniquely sluggish water inside the pore. This result highlights the role of the confining material, mediated through water friction, on ion transport. For example, we expect dramatically lower selectivity in hydrophobic nanochannels, such as carbon nanotubes58, due to the reduced friction experienced by confined water. We note that the transport dynamics of MgCl2 are significantly different than the monovalent ions and underestimate the experimentally recorded selectivity. This is likely because our simulations are strictly classical and thus do not incorporate the effects of ion adsorption.

No cationic selectivity is observed for the monolayer film, in agreement with existing literature for sub-nm pores in monolayer MoS234,59. Examining the velocity profiles of cations in the monolayer pore we find, after normalizing to their bulk values, little difference between ions. The thickness of the monolayer membrane (0.63 nm) is only slightly larger than the inner hydrated diameter of the cations, 0.4–0.54 nm, and smaller than the second hydration shell, 0.83–0.96 (Supplementary Fig. 16). We infer that ions are partially hydrated by water molecules located outside the membrane, reducing the effect of confinement as shown in the snapshot image in Fig. 4b. Supporting this claim, we find that the peaks in the radial ion PDF for the monolayer pore are shifted to the right (the ions more easily occupy the edge of the pore) and the mobility of ions adjacent to the pore edge is not reduced (Supplementary Fig. 23) indicating that the pore wall hardly affects ion transport. We also note that two factors influence the total resistance felt by ionic species traveling through a single nanopore, the access resistance, \({R}_{{access}} \sim \frac{1}{d}\), and the pore resistance, \({R}_{{pore}} \sim \frac{4L}{{{{\rm{\pi }}}}{d}^{2}}\), where \(L\) is the pore length and \(d\) the pore diameter60. For monolayer membranes with pore diameter ~1 nm, the access resistance dominates, and any selectivity induced by the pore itself is reduced.

Now we turn to the role of the anion in the selectivity between different salts. As in our experiments, the transference number in our simulations with monolayer salts remains relatively constant (Supplementary Fig. 24): the flux of K+ is higher than that of Na+ or Li+, but so is the flux of (K+)Cl- relative to (Na+)Cl- and (Li+)Cl- (Fig. 4f). For anions, this variation is a function of both velocity and total concentration. There are more chloride anions in the center of the pore for K+ and Na+ compared to Li+ or Mg2+, and the total concentration varies significantly (Supplementary Table 4 and Supplementary Fig. 17). Although the anion velocity profiles are identical for each salt, the concentration distributions vary. The velocity of ions increases near the pore center, leading to higher average mobilities for (K+)Cl- and (Na+)Cl- (Supplementary Fig. 17). The variation in concentration can be understood by observing that the 1 nm pore induces a high degree of ion-ion interactions between cation and anion. Two oppositely charged ions are strongly coupled when their internuclear distance \({{d}}_{{ij}}\) is less than the Bjerrum length \({{{{\rm{l}}}}}_{{{{\rm{B}}}}}=\frac{{{{{\rm{e}}}}}^{2}}{4{{{\rm{\pi }}}}{{{{\rm{\epsilon }}}}}_{0}{{{{\rm{\epsilon }}}}}_{{{{\rm{r}}}}}{{{{\rm{k}}}}}_{{{{\rm{B}}}}}{{{\rm{T}}}}} \sim 0.7\) nm61. For 6L-1 nm MoS2, independent of the salt, chloride ions are paired with an adjacent cation for nearly half the total time it takes to permeate through the pore. Ion-ion interactions are effectively non-existent for 1L-1 nm and are reduced in the 6L-2 nm MoS2 (Supplementary Fig. 25). We conclude that, for long and narrow (<2 nm) negatively charged pores, a high degree of ion coupling takes place. This coupling results in a higher concentration of anions (near the center of the pore) due to the strong electrostatic attraction between cation and anion. Finally, we note that a marginal degree of selectivity between divalent and monovalent salts exists in ~1 nm pores in multilayer membranes with sufficient surface charge, even if only electrostatic effects (Supplementary Section 7) are considered. No selectivity between monovalent ions can exist in this simplified system, however.

Discussion

In summary, we present an in situ electrochemical method for the fabrication of nanoporous membranes using polycrystalline MoS2. The method builds upon previous electroporation techniques, such as dielectric breakdown in SiN thin films and electrochemical etching of monolayer single crystals. We exploit the high density of grain boundaries in few-layer polycrystalline MoS2 to create thin films with a correspondingly high density of nanopores. These membranes exhibit selectivity for small monovalent and divalent cations, showcasing their potential for ion separation applications. As a result of the dense array of nanopores in the MoS2 membranes, the absolute flux outstrips existing devices that display similar levels of selectivity. This feature makes these membranes a more practical device for ion separations. MD simulations provide insights into the underlying mechanisms responsible for observed selectivity. We find that a combination of the role of the sluggish water confined to the pore combined with cation-anion pairing drives the selectivity between ions.

Methods

MoS2 synthesis

We follow a standard synthesis procedure for CVD-MoS247. A Si/SiO2 wafer is diced into pieces, solvent-cleaned, baked at 120 deg. C and plasma treated (YES-G1000) to remove residual organics and render the chips hydrophilic. A thin Mo film is deposited using magnetron sputtering (AJA ATC Orion 8 UHV Sputtering System) at 30 W and 1 mTorr with 30 s.c.c.m Ar flow. The deposition rate is determined to be 4 nm min-1 under these conditions. The Mo film is then sulfurized via chemical vapor deposition. A quartz boat with excess sulfur powder is loaded immediately upstream of the oven with the Mo film in the center; a separate heat belt is used to control the sulfur temperature. The one-inch tube furnace is pumped down and purged multiple times with Ar gas. The Ar flow rate is then held at 50 s.c.c.m. and the pressure is ~1 Torr. The furnace is heated to 300 deg. C and held for 1 h, after which it is ramped to 750 deg. C at 15 deg. C min-1. The heating belt upstream of the furnace is ramped quickly to 140 deg. C. to vaporize the sulfur. After 10 min, the oven and heating belt are cooled naturally.

MoS2 transfer onto SiN chips

A thin layer of PMMA (Nano 495) is spin-coated (3000 rpm for 1 min) on a freshly synthesized MoS2 thin film then baked on a hot plate set at 150 deg. C. A diamond-tipped scribe is used to etch ~1 mm squares in the polymer coated film. A portion of the chip is then submerged slowly in water, at which point the MoS2 film easily delaminates from the SiO2 chip. We transfer 1:1 EtOH:H2O into the water containing the floating MoS2 films, then scoop the film with a 3 mm SiN TEM grid (Norcada) with a single 300–500 nm diameter hole drilled via focused ion beam (TESCAN LYRA3, or ThermoFisher Scientific Helios 5CX) in the center. The chip is left to dry, then cleaned in acetone held at 60 deg. C for 12 h, then IPA and ultrapure water and blow dried with N2.

Mechanical exfoliation and transfer onto SiN chips

We follow a hybrid of procedures outlined in previous work to transfer to mechanically exfoliated MoS262,63. Few-layer MoS2 crystals (SPI supplies) are thinned using Nitto blue tape. PDMS (Sylgard 184 elastomer), stamps are prepared on clean Si wafers, then peeled off and transferred to a glass slide, with the side facing the Si facing up. The flakes are transferred to the PDMS and imaged. Using a micrometer, we adjust the position of the stamp to align with the SiN window while imaging using an optical microscope (Olympus DSX1000). The PDMS is brought down to contact the SiN chip, then very slowly raised, leaving the target flake covering the SiN pore.

Pore creation and ion conductance tests

All buffers and electrolytes are degassed and <20 nm filtered with Whatman Anotop syringe filters (Millipore Sigma). The SiN chip is loaded into a custom-built flow cell with reservoirs bridged by freshly chlorinated Ag/AgCl electrodes and is wetted with EtOH. We then exchange the buffers with 4:1, 1:1, 1:4, and 0:1 EtOH:H2O. After 20 min, we slowly run 1 M KCl through both sides of the reservoir until the solution is entirely exchanged. The electrodes are connected to a home-built amplifier with which we record current-voltage traces. To open pores, the voltage is ramped with 15–50 mV steps, brief 5–10 ms, 1.5 V pulses are applied across the film. After testing, the chip is rinsed with water, then solvent-cleaned again to remove adsorbed organics.

Characterization of MoS2 film

Raman spectroscopy is carried out using a HORIBA LabRAM HR Evolution Confocal Raman Microscope. Scanning electron microscopy is performed using a Carl Zeiss Merlin SEM. To perform STEM measurements, we use a JEOL JEM-ARM200CF at 80 kV; and for TEM measurements, a Tecnai F30 microscope at 300 kV. AFM is carried out using an Asylum Research Oxford Instruments Cypher ES AFM.

MD and finite element simulations

Full details of the MD simulations are detailed in Supplementary Methods. We construct the electrolyte (1 M KCl, NaCl, LiCl, MgCl2) reservoirs in packmol64 and Visual MD (VMD version 1.9.4a53) with TopoTools65, and run the simulations in LAMMPS (2017)66. We first equilibrate the simulation using an NPzT ensemble, then run an NVT ensemble for 5–20 ns, depending on the speed of convergence. We use MDAnalysis67 to parse the resulting trajectories. Finite element simulations are detailed in Supplementary Notes. They are performed using COMSOL Multiphysics version 6.0.0.354 with the Transport of Diluted Species and Electrostatics modules.

Materials and reagents

Acetone: Fisher Chemicals, 99.5%. Ethanol: Fisher Chemicals, certified denatured, 83.8–87.2%. Isopropanol: Fisher Chemicals, 99.9%. KCl: Sigma Aldrich, 99.0-100.5%. NaCl: Sigma Aldrich, 99.5%. LiCl: Oakwood Chemicals, >99%. MgCl2·6H20: Chem Impex, 99–102%. CaCl2: Acros Organics, 96%. RbCl: Thermo Scientific, 99%. CsCl: Sigma Aldrich, 99.0%. Sulfur: Sigma Aldrich, 99.98% trace metals basis.