Removal of pharmaceutical pollutants from effluent by a plant-based metal–organic framework

Emerging organic contaminants (EOCs), such as pharmaceutical compounds, are of growing environmental concern, and there is a need to develop new materials and technologies for their efficient removal. Here we developed a highly porous and stable zirconium–ellagate framework, denoted SU-102, which was used to remove EOCs from water, including real municipal wastewater treatment plant effluent. SU-102 adsorbs cationic EOCs with particularly high efficiencies, and of the 17 pharmaceutical EOCs detected in wastewater treatment plant effluent, all 9 cationic species were removed with efficiencies of at least 79.0–99.6%, emphasizing the importance of framework charge on selectivity. As a second mechanism of EOC removal, SU-102 photodegraded the antibiotic sulphamethazine under visible light. SU-102 is synthesized from ellagic acid, an edible polyphenol building unit, highlighting the possibility of creating stable high-performance multi-functional materials from sustainably sourced plant-based components. It is challenging to treat emerging organic contaminants such as pharmaceutical compounds. Using the proposed plant-based zirconium–ellagate framework, this study demonstrates high removal efficiencies of emerging organic contaminants from real untampered municipal wastewater treatment plant effluent.

) as well as scanning electron microscopy ( Supplementary Fig. 4), which showed an average particle length of 0.98 ± 0.66 µm and a width of 0.19 ± 0.06 µm (measured from 300 particles).
The structure of as-synthesized SU-102 was solved and refined (Supplementary Fig. 5 and Supplementary Table 2) using threedimensional (3D) electron diffraction (ED), also known as microED, which allows for the collection of single-crystal diffraction data from submicrometre-sized crystals 17 . SU-102 crystallizes in the rhombohedral space group R3 c and has a honeycomb arrangement of 1D channels (Fig. 1b) with an accessible diameter of 12 Å. The Zr(IV) cations are found in isolated ZrO 8 units with square anti-prism coordination geometry (Fig. 1d). Each Zr(IV) cation is chelated by catecholate groups of four ellagate anions, resulting in a 3D framework that can be described by the pts net 18 .
Remarkably, all hydrogen atoms of the framework could be located from the 3D ED data 19 . The ellagate anions remain partially protonated, with one phenol hydrogen per ellagate bridging the ZrO 8 units by hydrogen bonds in a helical arrangement along the c axis (Fig. 1d). Additionally, the framework is supported through π-π stacking of ellagate anions along the c direction, with carbonyl groups protruding into the channels.
The structure was further validated by scanning transmission electron microscopy (STEM) using both annular dark-field (ADF) and integrated differential phase contrast (iDPC) signals ( Fig. 1e-g). ADF imaging, which emphasizes heavier elements, clearly highlighted the positions of Zr(IV) cations in the crystals, while iDPC imaging provides more contrast to lighter atoms such as carbon and oxygen, accentuating the ellagate anions (see Supplementary Fig. 6 for the raw images). Both imaging techniques indicated a high degree of order in the crystals of SU-102.
Elemental analysis of SU-102 after activation suggested the presence of charge-balancing dimethylammonium (DMA) cations within the pores, implying an anionic framework. The generation of DMA, a compound naturally found in plants and animals 20 , through hydrolysis is a common phenomenon when DMF is used as a solvent in MOF synthesis. Crystal structure refinement against the 3D ED data revealed the location of the DMA cations in the pores, forming hydrogen bonds to phenol and lactone groups of the framework. Furthermore, 1 H and 13 C magic-angle spinning (MAS) solid-state nuclear magnetic resonance (NMR) indicated the presence of one DMA cation per ellagate anion and that one phenolic group remained protonated on each ellagate anion, which is in good agreement with the 3D ED model and the sum formula of (C 2 H 8 N) 2 [Zr(C 14  To further validate the anionic nature of the framework, ion exchange was performed to replace DMA cations in the pores with Li + , Na + and K + (Supplementary Figs. 8-18 and Supplementary Tables 3 and  4). In Na-exchanged SU-102, 1 H and 13 C MAS solid-state NMR confirmed the absence of DMF in the product and that the DMA cations can be fully exchanged for Na + by stirring SU-102 in aqueous NaCl solution ( Supplementary Fig. 8). 23 Na MAS solid-state NMR showed a distinct environment for the Na + cations interacting with the organic linker. Cation exchange had profound effects on gas sorption properties of SU-102: exchanging the counterion from DMA to Na + increased the Brunauer-Emmett-Teller (BET) surface area from 472 to 573 m 2 g −1 (Supplementary Figs. 11 and 13), and additional gas sorption measurements indicated that the CO 2 uptake capacity was enhanced by K + exchange, increasing from ~27 to ~90 cm 3 g −1 (at 293 K and 1 bar), while the CO 2 -over-N 2 selectivity also increased from 12 to 81 (Supplementary Table 4). The enhanced CO 2 uptake may be a result of an increased electric field gradient with respect to the framework 21 . Additionally, CO 2 could also be interacting directly with the cation, with K + potentially providing a larger area of interaction sites 22 .
An ideal EOC adsorbent should possess a high degree of porosity to maximize interactions with EOCs even when present at very low concentrations, demonstrate good stability under working conditions, be made of environmentally friendly components and have a low production cost. However, commonly used amorphous adsorbents, such as activated carbon, come with the inherent drawback of ill-defined structures and often limited removal efficiencies (REs). Crystalline porous materials, such as metal-organic frameworks (MOFs), offer high surface areas as well as well-defined pore dimensions and chemical environments, which can form favourable interactions between the framework and targeted adsorbates.
Comprising metal ions and organic linker molecules, MOFs provide a wide variety of host-guest interactions, thereby promoting selective separation of pollutants while also providing catalytically active sites capable of degrading contaminants. While MOFs show promising results for EOC removal 7 , no studies have, to the best of our knowledge, reported their uptake of pharmaceutical compounds from real and unspiked WWTP effluent, where EOCs are found as a complex cocktail of contaminants 5 .
In this article, we developed a robust MOF with the aim of attaining an efficient water remediation agent made of building blocks that are non-toxic and sustainably sourced when possible. For the organic part of the MOF, we turned to ellagic acid (Fig. 1a), an abundant phytochemical that is isolated from plant material such as tree bark and fruit peels-materials that are otherwise considered as waste from the food, pulp and paper industries 8 . Ellagic acid is a building unit of tannins, a class of naturally occurring polyphenolic biomolecules that are the second largest source of natural aromatic molecules, following lignin 9 . As a common antioxidant, it is sold commercially as a dietary supplement, making it considerably cheaper compared with many MOF linkers of similar size.
We recently reported the first MOF made with ellagic acid 10 , which was synthesized from biocompatible components and under green synthesis conditions. However, with a pore diameter of 7 Å, investigations were limited to the capture of small molecules or ions 11 . Following this, we aimed to develop other stable and biocompatible metal-ellagate frameworks with wider pores to facilitate capture of larger molecules.
To promote stability in MOFs, high-valence metal cations are often combined with organic linkers bearing carboxylate groups. As such, Zr(iv) cations have been of particular interest for the synthesis of MOFs 12 . In recent years, combining Zr(iv) with phenol-bearing organic ligands has yielded a handful of MOFs, all with remarkable chemical stabilities, yet they have been made from non-commercial synthetic ligands [13][14][15][16] .
Here, we present a zirconium-ellagate framework, denoted SU-102, created with the aim of combining the high chemical stability of Zr-MOFs with the renewable sourcing, biocompatibility and relatively low cost of a commercially available plant-based organic linker. SU-102 efficiently removes many challenging EOCs from water, demonstrated using real WWTP effluent. Laboratory-scale tests with select pharmaceutical compounds at higher concentrations indicate that SU-102 simultaneously acts as both an adsorbent and a photocatalyst of EOCs.

Synthesis, structure and characterization of SU-102
SU-102 was first synthesized under solvothermal conditions in a mixture of water, acetic acid and N,N-dimethylformamide (DMF), from zirconyl chloride and ellagic acid. SU-102 can be synthesized using either chemical grade (95% purity) or dietary supplement grade (90% purity) ellagic acid. DMF can be substituted for N,N-diethylformamide, or an aqueous solution of either dimethylamine or ammonia. In contrast to other Zr-phenolate MOFs that were synthesized over 24 h or longer [13][14][15][16] , the synthesis of SU-102 takes only 1 h (84% yield after activation). SU-102 can also be synthesized at ambient pressure (Supplementary Fig. 1), making it possible to scale up the synthesis to the multi-gram scale. Crystallinity and phase purity were confirmed by Article https://doi.org/10.1038/s44221-023-00070-z As anticipated for a zirconium-phenolate framework, SU-102 demonstrated chemical robustness in various conditions. In aqueous media the MOF was stable according to PXRD in a pH range of 3-12 ( Supplementary Fig. 19), in phosphate-buffered saline (>14 days; although with some changes to PXRD intensities, Supplementary  Fig. 20), and under hydrothermal conditions ( Supplementary Fig. 21), as was also validated through nitrogen adsorption ( Supplementary  Fig. 22). Comparing the aqueous stability of SU-102 with the five published Zr-phenolate MOFs, SU-102 performs as well as MIL-163 (ref. 13), while exhibiting lower acid/base stability than ZrPP-1 (pore size ~4 Å), yet higher than that of ZrPP-2 (pore size ~8 Å) (ref. 15). Comparing with UiO-67 (ref. 23), a Zr-MOF of similar pore size, the stability of SU-102 in various media is higher, highlighting the possibility of constructing chemically robust and cheaper MOFs with larger pores through the use of phenolate linkers. SU-102 was stable in many organic solvents, although partial degradation occurred in some aprotic solvents at 80 °C ( Supplementary Fig. 21). Thermal stability was investigated by PXRD ( Supplementary Fig. 23

Selective adsorption of EOCs in real WWTP effluent by SU-102
To study the adsorption of EOCs from complex mixtures at practically relevant concentrations, municipal wastewater treated by a membrane bioreactor (MBR), the process currently implemented at the WWTP in Stockholm, was collected for analysis and treatment by SU-102. Analysis of the effluent indicated the presence of 17 different EOCs at concentrations above the limit of quantification ( Fig. 2 and Supplementary Tables 6  and 7), ranging from 32 to 1,400 ng l −1 . After treatment with SU-102, the concentrations of all 17 EOCs decreased, while the MOF remains intact ( Supplementary Fig. 28). After SU-102 treatment, citalopram, atenolol (At), trimethoprim and sertraline had concentrations below the limit of detection (LOD), while tramadol, propranolol, clarithromycin and naproxen were found below the limit of quantification (LOQ) (Supplementary Table 6). REs of >99% were achieved for At, citalopram and trimethoprim, and REs ≥79% were achieved for 10 of the 17 EOCs. It should be noted that, for the EOCs that were below the LOD/LOQ after SU-102 treatment, the REs shown in Fig. 2 were calculated using the values of the LOD/LOQ concentration and are probably underestimated.
Of particular note is the high RE of metoprolol (98%), which showed the second highest concentration before SU-102 treatment (1,100 ng l −1 ). Also of note is the high RE of the anti-depressant citalopram (>99%), which was ranked in a 2019 report as the highest risk and priority for the Himmerfjärden WWTP 24 , followed by oxazepam.
The wide range of observed REs, between 19% and >99%, indicates strong selectivity in adsorbing certain EOCs over others. The adsorption selectivity depends on numerous factors such as pore accessibility (size and geometry) and inter-molecular interactions between the MOF and the EOC (for example, hydrogen bonds, van der Waals forces and electrostatic interactions). In general, all EOCs with acidic carboxylic acid groups (diclofenac, furosemide and naproxen) had lower REs, while all those bearing basic tertiary amine groups (citalopram, clarithromycin, tramadol and venlafaxine) were adsorbed with high REs. Moreover, an inspection of estimated pK a values of the 17 EOCs (Supplementary Table 7) revealed that the nine pharmaceuticals removed with the highest REs all had pK a values for the strongest basic group that were higher than the pH of the effluent (pH 6.4). This indicates that those nine EOCs were predominantly in their cationic forms in the effluent, typically through protonation of a secondary or tertiary amine. All eight other EOCs had pK a values lower than 6.4 and are thus probably present in their neutral or anionic forms. In summary, REs of cationic EOCs were between 79% and 99%, neutral EOCs between 19% and 79%, and anionic EOCs between 19% and 38% (Fig. 2). The observation that all EOCs with an expected net positive charge were removed with high REs indicates that electrostatic interactions play a dominant role in the selectivity of EOCs adsorbed by SU-102. The use of Na-exchanged SU-102 for EOC sequestration under similar conditions was evaluated, showing that the general trend remains (Supplementary  Table 8), although the REs of tramadol, oxazepam and carbamazepine are slightly decreased.
To the best of our knowledge, this is the first study utilizing a MOF to remove EOCs from real WWTP effluent without spiking the water with EOCs. The results clearly indicate that SU-102 can efficiently sequester many EOCs that are currently not removed by WWTPs.

Combined adsorption and photodegradation of EOCs by SU-102
To further investigate the removal of EOCs by SU-102, we selected three EOCs commonly encountered at high concentrations in wastewater and often poorly removed by WWTPs 25,26 : the β-blocker At, the veterinary antibiotic sulphamethazine (SMT) and the anti-inflammatory diclofenac (DCF). These persistent EOCs can have severely toxic effects 19 , such as renal dysfunction for At and DCF 27,28 , as well as hormone imbalance and potential development of bacterial resistance for SMT 29 . For adsorption experiments, SU-102 was suspended in separate tap water solutions spiked with higher concentrations of At (70 mg l −1 ), SMT (10 mg l −1 ) or DCF (15 mg l −1 ), and the adsorption of the contaminants was quantified by high-performance liquid chromatography (HPLC; Methods and Supplementary Figs. [29][30][31][32]. The selection of EOC concentrations was based on reported data of severely contaminated waters (for example, sulphonamides >1 mg l −1 , At >8 mg l −1 , DCF ~1 mg l −1 ) (refs. [30][31][32][33], but further concentrated (approximately tenfold) to ensure accurate detection. At these higher concentrations, SU-102 was able to adsorb up to 70%, 19% and 11% of At, SMT and DCF, respectively, within 2 h (Fig. 3).
These three EOCs are predominantly cationic, neutral and anionic, respectively, at the pH of the tap water (pH ~6; Supplementary Table 7), confirming the higher affinity of SU-102 to cationic species and suggesting electrostatic interactions as the main driving force for adsorption. Additionally, the influence of pH on the adsorption of SMT was evaluated ( Supplementary Fig. 33). SMT is expected to be protonated at pH 2 and the RE is indeed much higher compared with the results at pH 6.4 (60.8% versus 24.5%, respectively, after 5 h), further confirming the importance of electrostatic interactions for adsorption.
The robustness of SU-102 during water treatment was studied, showing no detectable ligand leaching by HPLC and unaltered PXRD patterns (Fig. 3c). Comparing SU-102 with other MOFs investigated for At, SMT or DCF removal, SU-102 shows a range of better, similar or lower REs, yet after 24 h no degradation of SU-102 was detected (Supplementary Table 9). Compared with other commonly used synthetic linkers, the low cost and biocompatible character of the natural ellagate ligand makes SU-102 highly competitive for long-term use. Further, it was discovered that concentrated sodium chloride solutions could be used to regenerate SU-102 ( Supplementary Fig. 34) 34 , facilitating complete removal of previously loaded At, and highlighting the potential of reusing the material as an adsorbent.
In view of the previously reported photocatalytic activity of other Zr-based MOFs 35 , photodegradation studies of At, SMT and DCF by SU-102 were performed under similar conditions as the adsorption experiments ( Fig. 3b and Supplementary Table 9). While At and DCF appear to be removed exclusively by adsorption, SU-102 acted as an efficient photocatalyst in the elimination of SMT (38% for adsorption versus 100% for adsorption and photodegradation). With an estimated band gap of 2.73 eV ( Supplementary Fig. 35), SU-102 was able to efficiently degrade SMT under visible light irradiation (>90% after 7 h), while retaining its structural and chemical integrity. Thus, the combination of both sorption and catalytic processes in a single MOF could pave the way to remove a large variety of EOCs from contaminated water. Additionally, reusability of SU-102 for the photodegradation of SMT was confirmed for at least seven successive cycles ( Supplementary  Figs. 36 and 37).
Intermediates and photodegradation products of SMT were investigated by liquid chromatography-mass spectrometry (LC-MS) ( Supplementary Fig. 38). During photodegradation, peaks emerged consistent with the formation of (4,6-dimethylpyrimidin-2-yl)sulphonic amide, 4-aminobenzenesulphinate, maleic acid and phenol 36 . A proposed mechanism for SMT degradation is shown in Supplementary Fig. 39. Quantitative structure-activity relationship calculations indicated that the developmental toxicity of the degradation products are notably lower than SMT (Supplementary Fig. 40).
In addition, the simultaneous degradation of a mixture of three contaminants (At, DCF and SMT) in tap water was also investigated, showing that the RE of At and SMT remains unaffected ( Supplementary  Fig. 41) in the mixture, while the RE of DCF was doubled (48% versus 24%, 24 h). This could possibly be explained by the presence of reactive species formed during the photodegradation of SMT, as outlined above.

Conclusions
A chemically robust Zr(iv) MOF made from ellagic acid, a plant-sourced molecule isolated from food waste, was synthesized and its structure unveiled using advanced transmission electron microscopy (TEM) techniques, showing a uniform anionic framework with a well-ordered porous structure. As anticipated for a Zr-phenolate MOF, SU-102    Article https://doi.org/10.1038/s44221-023-00070-z demonstrated exceptional chemical stability, remaining intact over a large pH range and under hydrothermal conditions. To approach practically relevant conditions, the potential of SU-102 to adsorb EOCs from WWTP effluent was investigated, showing a particularly high RE for 10 out of 17 contaminants, which were not fully sequestered using current WWTP processes. Cationic contaminants were preferentially adsorbed by the anionic SU-102, and the relationship between high RE and the expected charge of the EOCs suggests that the selectivity and RE may be adjusted by altering the pH of the water, which could be beneficial for controlling adsorption and desorption. Furthermore, photodegradation was successfully demonstrated on SMT as a second removal mechanism, demonstrating both reusability and better stability compared with other MOFs. The anionic nature of SU-102 also allows for tuning the composition, accessible pore size and properties of the MOF by cation exchange. On the basis of the high affinity of anionic SU-102 for capturing cationic EOCs, it is hypothesized that cationic MOFs may be of interest for the selective capture of anionic EOCs such as DCF. Furthermore, the use of multiple adsorbents made from sustainably sourced building blocks would facilitate highly efficient sequestration of a broad range of pollutants-a crucial aspect of ensuring freshwater availability while maintaining the overarching goal of sustainability.

Synthesis and physical characterization
SU-102 was initially synthesized by adding 60 mg of ellagic acid (Acros Organics, 97%) and 32 mg of ZrOCl 2 ·8H 2 O (Sigma-Aldrich, reagent grade, 98%) into a 5 ml borosilicate 3.3 glass tube (Duran 12 × 100 mm, DWK Life Sciences) containing 2 ml DMF, 1 ml deionized water and 1.5 ml acetic acid. The glass tube was then sealed with a polybutylene terephthalate cap containing a polytetrafluoroethylene (PTFE) seal and heated at 120 °C for 1 h while stirring. The resulting yellow suspension was then centrifuged at 6,000g for 10 min and decanted. The remaining solid was then dried overnight at 80 °C. The yield after activation was 65.5 mg, corresponding to 84% of the theoretical yield (78 mg). EOC removal experiments were carried out using SU-102 prepared through this procedure. As the reactions were carried out under hydrothermal conditions, care should be taken when reproducing the synthesis as a high pressure is generated upon heating the reaction vessel.
A ten-fold up-scaled synthesis was carried out under reflux conditions by adding 600 mg of ellagic acid (Acros Organics, 97%) and 320 mg of ZrOCl 2 ·8H 2 O (Sigma-Aldrich, reagent grade, 98%) into a 100 ml round-bottom flask containing a mixture of 20 ml DMF, 10 ml deionized water and 15 ml acetic acid. A PTFE stir bar was added and a reflux condenser attached to the flask, which was then heated to 80 °C for 48 h using an oil bath. The contents were then centrifuged at 6,000g for 10 min, and the remaining solid was dried at 80 °C overnight. The yield after activation was 0.638 g, corresponding to 82% of the theoretical yield (0.780 g).
For stability tests, 10 mg SU-102 was immersed in 1 ml of each respective solvent or solution, which was added to the same glass tubes used for synthesizing the material. The tubes were then sealed with polybutylene terephthalate caps containing a PTFE seal and were subsequently stirred and heated to various temperatures (as indicated in the 'Synthesis, structure and characterization of SU-102' section) for 24 h. Solutions of various pH were prepared by adding NaOH or HCl to deionized water to obtain the desired pH.
For ion exchange, 300 mg of the as-synthesized MOF was mixed with 100 ml 1 M solution of a metal chloride salt (LiCl, NaCl or KCl) for 30 min at room temperature. After 30 min, the partially ion-exchanged MOF was separated by centrifugation at 2,349g for 10 min and the process was repeated again for a second time. Thereafter, the ionexchanged MOF was separated by centrifugation at 2,349g for 10 min and washed three times with 50 ml deionized water. After washing, the ion-exchanged MOF was dried in an oven at 343 K overnight.
For general characterization, in-house PXRD measurements were carried out using a Panalytical X'pert Pro diffractometer (Cu Kα 1,2 , λ 1 = 1.540598 Å, λ 2 = 1.544426 Å) using a Bragg−Brentano geometry. Variable-temperature PXRD measurements were carried out using the aforementioned in-house diffractometer, equipped with an Anton Paar XRK 900 chamber (Supplementary Fig. 23). Thermogravimetric analysis (TGA) data ( Supplementary Fig. 7) of as-synthesized SU-102 were collected using a PerkinElmer TGA 7. Secondary electron scanning electron microscopy images were acquired using a JEOL 7000F microscope operating at 2 kV (unless indicated otherwise in the Supplementary Information). Elemental analysis was carried out by Medac Ltd. The elemental analysis of as-synthesized SU-102 was as follows: expected (%) for DMA 2 [29][30][31][32] were acquired in diffuse reflectance mode with a PerkinElmer Lambda 1050 UV-vis-NIR spectrometer equipped with an integrating sphere, using BaSO 4 as the reflectance reference. The Kubelka-Munk function F(RN) = k/s (where k and s are the absorption and diffusion coefficients, respectively) was applied to the data to obtain the corresponding absorbance spectrum.

3D electron diffraction and topological analysis
Three-dimensional electron diffraction data ( Supplementary Fig. 5 and Supplementary Table 2) were collected using a JEOL JEM2100 TEM, equipped with a Timepix detector from Amsterdam Scientific Instruments, while continuously rotating the crystal at 0.45° s −1 . The experiment was carried out using Instamatic 37 , with data reduction performed in XDS 38 . The acquired intensities were then used to solve the structure of SU-102 with SHELXT 39 , and refined using SHELXL 40 , with electron scattering factors extracted from SIR2014 (ref. 41). From the 3D ED data, all non-hydrogen atoms could be located in the initial structure solution. Hydrogen atoms were located in the difference Fourier maps of subsequent refinements. The phase purity of the title material was shown through a Pawley fit (Supplementary Fig. 3 and Supplementary Table 1) against PXRD data in TOPAS-Academic version 6 (ref. 42). Topological analysis of the SU-102 framework was carried out using the software package ToposPro 43 .

STEM
Sample preparation for STEM imaging was performed by taking a small amount (∼20 µg) of as-synthesized SU-102 and embedding it in a resin (LR White) inside a gelatin capsule (size 00). The capsule was then hardened at 60 °C for 24 h. Ultrathin sectioning, with an estimated section thickness of 40 nm, was later carried out using a Leica Ultracut UCT with a 45° diamond knife from Diatome. The sections were then transferred to carbon-coated copper grids (EMS-CF150-Cu-UL). STEM images of SU-102 were obtained using a Thermo Fisher Themis Z double aberration-corrected TEM. The microscope was operated at an accelerating voltage of 300 kV. The images were acquired using a beam current of 10 pA, a convergence angle of 16 mrad and a dwell time of 5 µs. iDPC and ADF images were obtained simultaneously. The ADF detector was set at a collection angle of 25-153 mrad. The iDPC images were formed using a segmented annular detector. A high-pass filter was applied to the iDPC images to reduce low-frequency contrast. The lattice-averaged potential maps were obtained by crystallographic image processing using the software CRISP 44 .

Gas sorption
Nitrogen and greenhouse gas (CO 2 and SF 6 ) sorption measurements (Supplementary Figs. 11-18 and Supplementary Table 4) were carried out using a Micromeritics ASAP2020 surface area analyser. The analysis bath was temperature controlled using liquid nitrogen (194 K) or water (293 K). Gas selectivity was estimated using the equation s gas1 = (q gas1 /q gas2 )/(p gas1 /p gas2 ) for two hypothetical gases with 15 kPa CO 2 : 85 kPa N 2 and 10 kPa SF 6 : 80 kPa N 2 . Before gas sorption measurements, the as-synthesized MOF was activated at 150 °C for 3 h under dynamic vacuum and the ion-exchanged MOFs were activated at 110 °C for 3 h under dynamic vacuum.

SO 2 adsorption in SU-102
The adsorption-desorption SO 2 isotherm was performed on an activated sample of SU-102, at 298 K up to 1 bar, with the aid of a dynamic gravimetric gas/vapour sorption analyser, DVS vacuum (Surface Measurement Systems Ltd.). The resulting adsorption isotherm is of type I with a total SO 2 uptake of 2.8 mmol g −1 (Supplementary Fig. 24). The PXRD pattern of SU-102 after SO 2 adsorption confirmed the retention of the crystal structure ( Supplementary Fig. 25). Considering the relatively low surface area of SU-102, the SO 2 packing density within the pores is comparable to MOF materials with higher BET surface area such as NU-1000 and MFM-601, with a reported packing density of 0.65 and 0.53 g cm 3 , respectively (see Supplementary Table 5 for a comparison). The heat of SO 2 adsorption in SU-102 was calculated according to reported literature 45 . Two SO 2 adsorption isotherms were measured at two different temperatures ( Supplementary Fig. 26), and the isotherms in the low coverage region were fitted according to the virial-type equation (1), which expresses the pressure p as a function of the amount adsorbed n. A 0 is a virial coefficient for the adsorbateadsorbent interaction, and A 1 , A 2 , etc. are constants for the double, triple and so on (A 2 and higher coefficents can be ignored at low coverage). ) or in logarithmic form A plot of ln(n/p) versus n should give a straight line at low surface coverage ( Supplementary Fig. 27). Using the Clausius-Clapeyron equation (3), where Q st is the heat of adsorption, T is temperature and R is the gas constant, for a fixed surface coverage n, equation (4) is obtained, where H ads is the enthalpy of adsorption, and p 1 and p 2 are the partial pressures at temperatures T 1 and T 2 , respectively. Substitution of p in equation (4) with equation (2) results in an expression for the enthalpy of adsorption (equation (5)). From the linear fittings, the virial coefficients are used to estimate the enthalpy of adsorption. The value obtained for the isosteric heat of adsorption at zero coverage is −45.31 kJ mol −1 .  Fig. 8 for the assignments of the observed shifts,

Adsorption and photodegradation of EOCs
The treatment of effluents from WWTPs using SU-102 was studied by mixing SU-102 or Na-exchanged SU-102 (1 mg ml −1 of effluent water) with effluent water acquired from IVL Swedish Environmental Research Institute's R&D facility in Hammarby Sjöstadsverk in Stockholm, Sweden. The treatment steps of the membrane bioreactor process in the plant consist of an activated sludge process and a final ultrafiltration. A 7 day composite sample was collected through pooling of daily flow-proportional samples, which was then used for the adsorption tests. After stirring activated SU-102 with the effluent water for 24 h, the mixture was filtered off (Pall 0.2 µm SUPOR Acrodisc filters) and analysed by HPLC-tandem mass spectrometry using solid phase extraction cartridges (Oasis HLB, 6 ml, Waters). Cartridges were conditioned with methanol followed by Milli-Q water. The substances were eluted from the solid phase extraction cartridges using 5 ml methanol followed by 5 ml acetone. The supernatants were transferred to vials for final analysis on a binary liquid chromatography system with auto injection (Shimadzu, Japan). The chromatographic separation was carried out using gradient elution on a C18 reversed-phase column (dimensions 50 × 3 mm 2 , 2.5 µm particle size, XBridge, Waters) at a temperature of 35 °C and a flow rate of 0.3 ml min −1 . A procedural blank was also made and analysed. All the results are presented in Supplementary  Tables 6 and 8. For the laboratory-scale tests on solutions containing selected EOCs, the selected EOCs, At (≥98%), SMT (≥99%) and sodium DCF (≥98%) were purchased from Sigma-Aldrich and used without further purification. Different organic molecules were analysed by HPLC: the amount of adsorbed or degraded SMT, At and DCF as well as the released ellagic acid linker were determined using a reversed-phase HPLC Jasco LC-4000 series system, equipped with a photodiode array detector MD-4015 and a multisampler AS-4150 controlled by Chrom-Nav software ( Jasco Inc.). A purple octadecyl-silica reverse-phase column (5 µm, 4.6 × 150 mm, Análisis Vínicos) was employed. For the quantification of all chemical species, isocratic conditions were used. The flow rate was 1 ml min −1 , and the column temperature was fixed at 298 K. In all cases, the injection volume was 30 µl.
The mobile phase was based on a mixture of 70:20:10 water:acetronitrile:formic acid (10% vol/vol) solution for ellagic acid analysis, with a retention time (r.t.) and an absorption maximum of 5.99 min and 280 nm, respectively. SMT was analysed using a mixture of 35  In an 8 ml vial, 4 mg of SU-102 was suspended in 4 ml of a SMT, At or DCF aqueous solution made from tap water. The concentrations used were 10 mg l −1 for SMT, 70 mg l −1 for At and 15 mg l −1 for DCF. Adsorption or photodegradation reactions were performed under magnetic stirring in the dark (adsorption) or irradiating with visible light (photodegradation). At certain intervals (0.25, 0.5, 1, 2, 4, 5 and 24 h), an aliquot of 100 µl was collected by centrifugation for analysis by HPLC. In particular, the photodegradation studies were performed in a glass photoreactor equipped with a 300 W Xe lamp (Oriel Instruments OPS-A500) under open air at room temperature, with the samples stirred and placed at a fixed distance of 21 cm from the source. A 420 nm cut-off filter (Newport 20CGA-420 IJ342) was placed between the sample and the light source to eliminate the UV irradiation. It must be pointed out that before irradiation, it is not necessary to stir the suspension until the adsorption-desorption equilibrium is reached. All experiments were performed at least in triplicate to ensure statistically reliable results. The crystallinity of all the remaining solids was analysed by PXRD using an Empyrean diffractometer (PANalytical), equipped with a PIXcel3D detector and a Cu Kα radiation source (Ni β filter, λ = 1.5406 Å), operating at 45 kV and 40 mA. The liquid phases were analysed by HPLC, determining the amount of EOC and the total amount of possibly leached MOF ligand in the solution (see the HPLC conditions described above). Note here that the stability of SMT, At and DCF was studied under irradiation in the absence of the MOF, confirming that none of them were degraded after 24 h. The same procedure was used for studying the photodegradation of a mixture of the three selected EOCs (At, SMT and DCF), in which 4 mg of SU-102 was suspended in 4 ml of a mixture of At (70 mg l −1 ), SMT (10 mg l −1 ) and DCF (15 mg l −1 ) in tap water. The mixture was then irradiated under visible light and continuous stirring. Aliquots of 100 µl were taken at different time intervals (0.25, 0.5, 1, 2, 4, 5, 6, 7 and 24 h) and centrifuged for HPLC analysis.
The degradation mechanism of SMT was determined by HPLC-MS using an Agilent 1260 Infinity II (Agilent Technologies). The system was coupled to a single quadrupole mass spectrometer detector (Infinity-Lab LC/MSD-iQ, Agilent Technologies), equipped with an atmospheric pressure ionization electrospray source, working in positive and negative ion mode and analysing samples in the mass range of 40-400 m/z. For the quantification of SMT, the mobile phase consisted of a mixture of acetonitrile:water (35:65) delivered at a flow rate of 0.5 ml min −1 at 35 °C and using a InfinityLab Poroshell 120 EC-C18 (2.1 × 150 mm; 2.7 µm) (Agilent Technologies) column.
The toxicity of the degradation products was assessed using quantitative structure-activity relationship calculations by the Toxicity Software Tool developed by the Environmental Protection Agency. The developmental toxicity was evaluated on the main degradation compounds (maleic acid, acetic acid and phenol) by applying the consensus method 48 .
For regeneration of the adsorbent, desorption experiments using SU-102 loaded with At were performed using a saturated solution of NaCl. First, At was adsorbed into the MOF using a highly concentrated At solution in tap water of 1,000 ppm for a duration of 5 h. The MOF was then separated by filtration using a nylon filter (0.22 µm) under vacuum. The At loading was calculated by HPLC, reaching 0.20 ± 0.03 mg At per mg SU-102 . The resulting At-loaded MOF was dispersed in a saturated solution of NaCl under continuous stirring at 400 r.p.m. An aliquot of 100 µl was taken at different time intervals. The results (Supplementary Fig. 34) showed that, after 15 min, the At release was 0.20 ± 0.01 mg At per mg SU-102 (corresponding to ~100% desorption of the previously loaded At), indicating complete regeneration of the SU-102 material.

Data availability
CCDC 2167934 contains the supplementary crystallographic data for this paper. These data can be obtained free of charge via www.ccdc.cam. ac.uk/data_request/cif, by emailing data_request@ccdc.cam.ac.uk, or by contacting The Cambridge Crystallographic Data Centre, 12 Union Road, Cambridge CB2 1EZ, UK (fax +44 1223 336033). Part of the raw data have been made available on Zenodo (record 7687564) (ref. 49).