Introduction

Water is the source of life on Earth. The life and health of humans and other living depend on this valuable substance. Environmental problems and the release of organic dyes into water sources are important concerns in the world. Water pollution is one of the most serious and important problems in the world, which cause many problems in human society. Therefore, effective and efficient removal of pollutants from water is very important1. One of the main factors of environmental pollution is the growth of chemical industries. Many chemical industries such as paper, plastic, cosmetics, leather, printing, pharmaceutical, and textile use synthetic dyes to color their products. These dyes release into the water and cause the production of wastewater with dyes and organic contents. Malachite green, Crystal violet, and methylene blue are cationic triphenylmethane dyes that are used for different purposes in the industry2,3. Malachite green is an organic compound that is widely used in aquaculture to treat fungal attacks and protozoal infections and is used in other industries such as food, health, and textile industries4,5. However, the use of this dye has raised many concerns due to its reported toxic effects. Although the use of this dye is prohibited in several countries and is not approved by the United States Food and Drug Administration, it is still used in many parts of the world due to its low cost, availability, and efficiency5,6. Crystal violet is widely used in veterinary medicine as a biological stain, it is also used as a textile dye in textile processing3. Also, methylene blue is the most common material used to dye cotton, wool, and silk. It can cause eye burns that may cause permanent eye damage. In case of inhalation, it can lead to acute respiratory problems, while oral consumption causes a burning sensation and may cause nausea, vomiting, profuse sweating, and mental confusion7,8. These dyes are toxic, carcinogenic, mutagenic, and often stable against light and heat9. As access to clean water is essential for various activities, removing these dyes from water and wastewater requires an efficient sorbent. In the present study, the efficient removal of malachite green, crystal violet, and methylene blue was done using an efficient synthetic sorbent based on magnetic MOF. The dyes studied in this research are presented in Table 1.

Table 1 Chemical characteristics of organic dyes studied in this research.

Metal-organic frameworks (MOFs) are porous structures that are created from the coordinated bond between metal ions and organic linkers or bridging ligands10. The specific structural characteristics of MOFs include a wide range of particle sizes, high surface-to-volume ratio, high absorption tendency, controllability of particle size, and high absorption capacity11. Due to their high surface area, tunable structural properties, and thermal stability, MOFs are suitable for a wide range of applications, including catalysis12, gas storage13, enzyme carriers14, sensors15, and as a sorbent in the adsorption process has been studied4. The absorption capacity of MOFs to adsorb dyes is significant. One of the significant advantages of MOF compared to other sorbents is its structural diversity, the possibility of determining the size of the pores, and their properties by choosing different metal Ions and organic ligands in the synthesis stages16. HKUST-1 MOF contains Cu2+ units coordinated by four carboxylate groups and creates a highly porous cubic structure with a 3D network17,18. The important point in manufacturing HKUST-1 is the easy and reproducible synthesis of this MOF. MOFs can be used to treat dyes wastewater. MOFs are suitable materials for dye adsorption from wastewater with favorable performance compared to conventional sorbents19. Recently, for the better performance of MOFs, their composites are used, and in this study, a magnetic composite has been synthesized. Among the sorbents that have been synthesized so far for the removal of pollutants, magnetic sorbents have received much attention for absorbing dyes20.

Magnetic nanoparticles have attracted the attention of many researchers due to their extraordinary properties. They can be bound to MOFs by functionalization for the formation of a composite that has magnetic properties. Composites are a combination of two or more separate materials that have different properties than individual parts21.

HKUST-1 has attracted the attention of researchers in recent years due to its easy and cost-effective synthesis. On the other hand, it is difficult to separate MOFs from the mixed solution and it causes secondary pollution in the environment, and a centrifugal step is needed to separate them from the aqueous solution, so the use of MOF magnetic adsorbent allows easy separation with an external magnetic field and product recovery It will be easy and the operating cost will be more affordable. Also, the stabilization of adsorbent in aqueous environments using composite formation, a short time in the removal process, and acceptable adsorbent capacity are important in this study. Therefore, the magnetic HKUST-1 has been considered an accepted and efficient adsorbent for its easy separation.

In this study, the synthesized MgFe2O4 nanoparticles were functionalized by the –NH2 functional group to bind to the carboxylic acid group of HKUST-1 by hydrogen bonding. The new magnetic absorbent with the structure of MgFe2O4-NH2-HKUST-1 was studied to remove dye pollutants methylene blue, crystal violet, and malachite green. This compound shows adequate adsorption capacity, speed, and removal percentage for removing dyes from wastewater. The effective factors, isotherms, kinetics, and thermodynamics of the adsorption removal process were investigated.

Experimental

Materials and instruments

Malachite green (MG), Crystal violet (CV), Methylene blue (MB), Iron (III) nitrate nonahydrate Fe(NO3)3·9H2O, Magnesium nitrate hexahydrate Mg(NO3)2·6H2O, Copper(II) nitrate trihydrate Cu(NO3)2·3H2O, benzene-1, 3,5-tricarboxylate (BTC), Sodium acetate C2H3NaO2, Ethylene glycol C2H6O2, Ethanolamine C2H7NO, Ethanol C2H5OH, Hydrochloric acid HCl were purchased from Merck and Sigma Aldrich company.

X-ray powder diffraction (XRD) measurements were performed using a Philips X’pert diffractometer with monochromatic Cu-Kα radiation. A glass pH electrode (Metrohm 713 pH-meter) was used for pH measurements. The morphology of samples was studied by field emission scanning electron microscopy (FE-SEM) KYKY-EM 3200 with gold coating. Fourier transform infrared spectroscopy (FT-IR) spectra were obtained on Equinox 55 BRUKER model FT-IR spectrometer. The absorbance measurement was carried out by double-beam UV–Vis spectrophotometer using a 1 cm quartz cell (Perkin-Elmer, Lambda 35, USA). BET (Belsorp mini II, Microtrace bel Corop), TGA (Bahr, Germany), zeta potential (SZ-100z), and vibrating sample magnetometer (Lake Shore Cryotronics-7407) analysis were done.

Synthesis of MgFe2O4-NH2

10 mmol of CH3COONa as dissolved in 6.5 mL Ethylene glycol and heated to 100 °C under a magnetic stirring and refluxing system in the sand bath for 15 min. A solution of 0.66 mmol of Mg(NO3)2·6H2O and 1.3 mmol of Fe(NO3)3·9H2O dissolved in 3.5 mL ethylene glycol was poured into the preheated solution rapidly. The mixture was stirred for 30 min, and then 2.3 mL of ethanolamine was added. The mixture was heated to 200 °C and maintained for 12 h and then, the system was cooled to room temperature naturally. The black precipitate was collected by a magnetic separator, washed with double distilled water excessively, and then ethanol. The final product, the MgFe2O4-NH2 nanoparticle, was dried at 70 °C for 4 h22 (Scheme 1).

Scheme 1
scheme 1

The magnetic nanoparticle synthesis process.

Synthesis of MgFe2O4-NH2-HKUST-1 composite

0.05 g of the synthesized nanoparticle (MgFe2O4-NH2) and 2.4 mmol of copper nitrate were dissolved in 25 ml of ethanol and placed in an ultrasonic bath for 30 min. Then 1 mmol of BTC was dissolved in 25 ml of ethanol and added to the previous solution at a rate of 0.5 mL/min under mechanical stirring for 1 h. Then, the final product (green precipitate) was washed several times with ethanol separated by an external magnet, and then dried under a temperature of 50 °C for 4 h in a vacuum oven (Scheme 2).

Scheme 2
scheme 2

The magnetic composite synthesis process.

Adsorption process

Different solutions of dyes were prepared by dissolving appropriate amounts of MG, CV, and MB in the range of 0.18–9.27 mg L−1, 0.81–6.94 mg L−1, and 0.63–5.43 mg L−1, respectively, in distilled water. The calibration curves were obtained by measuring the absorbance for MG at 620 nm, CV at 590 nm, and MB at 664 nm. The adsorption process was carried out by the addition of 10 mg, 5.5 mg, and, 1 mg of sorbent separately to the 5 mL solutions with different concentrations of MG, CV, and, MB (Scheme 3).

Scheme 3
scheme 3

The process of removing organic dyes and separating the sorbent from the solution.

The solutions including the sorbent were mixed with a magnetic stirrer for 5 min for all dyes. Subsequently, the sorbent was separated by an external magnet, and the remaining MG, CV, and MB concentrations were calculated by the following equation:

$$ Removal \;(\% ) = \left( {1 - \frac{A}{{A_{0} }}} \right) \times 100 $$
(1)

where A is the adsorption of the analyte after adding the sorbent and A0 is the initial adsorption of the solution.

Result and discussion

Characterization of MgFe2O4-NH2-HKUST-1 composite

For characterization of prepared magnetic composite, FT-IR spectra (4000–400 cm−1) in KBr pellet, X-ray powder diffraction (XRD) measurements, field emission scanning electron microscopy (FE-SEM), Brunauer–Emmett–Teller (BET), Thermal gravimetric analysis (TGA) and Vibrating sample magnetometer (VSM) were performed.

FT-IR analysis

The Fourier transform infrared (FT-IR) spectra of HKUST-1, MgFe2O4-NH2, and MgFe2O4-NH2-HKUST-1 have been shown in Fig. 1a.

Figure 1
figure 1

(a) FT-IR spectra of HKUST-1, MgFe2O4-NH2 and MgFe2O4-NH2-HKUST-1, (b) XRD pattern of MgFe2O4-NH2, H KUST-1, and MgFe2O4-NH2-HKUST-1.

In the FT-IR spectra related to HKUST-1 Bands in 1447 cm−1 and 1639 cm−1 are attributed to –O–C–O– groups, and the bands in 1375 cm−1 and 1565 cm−1 are attributed to the C=C stretching vibration of the BTC ligand. The band in 680 cm−1 is related to the Cu–O bond23. The broad peak at 3420 cm−1 can be attributed to the -OH of water molecules24. In the FT-IR spectra related to MgFe2O4-NH2 the bands in 2923 cm−1 and 2856 cm−1 are attributed to the stretching vibration of the C–H bond in ethanolamine or ethylene glycol. The band in 1054 cm−1 can be attributed to the overlap of the C–O bond with the C–N stretching vibration, which is a sign of the binding of amine groups on the MgFe2O4-NH2 nanoparticle22, The band in 570 cm−1 is related to the Fe–O bond. Also, the bands in 1383 cm−1, 1630 cm−1, and 3420 cm−1 are related to C–N stretching vibration, NH2 scissor bending vibration, and N–H stretching vibration, which indicates the presence of ethanolamine molecules on the nanoparticle surface25.

Therefore, the peaks appearing in the spectrum of HKUST-1 and MgFe2O4-NH2 can be seen in the spectrum corresponding to the synthesized composite.

XRD analysis

To investigate the phase purity of the prepared sorbent, powder X-ray diffraction (XRD) was carried out (Fig. 1b). In the XRD pattern related to MgFe2O4-NH2, peaks at the angles of 2θ = 30.2°, 35.44°, 43.12°, 56.8°, and 62.48° are the characteristic peaks of the synthesized compound25. In the XRD pattern related to HKUST-1, the peaks in the angles of 2θ = 11.5°, 13.2°, 16.3°, 17.3°, 20.0°, 29.3°, 35.40° are the characteristic peaks of this structure23. The peaks appearing in pattern of HKUST-1 and MgFe2O4-NH2 can be seen in the pattern of the synthesized composite.

FE-SEM micrographs

FE-SEM was also carried out to observe the morphology of the MgFe2O4-NH2-HKUST-1. In Fig. 2a, FE-SEM images of metal oxide nanoparticles MgFe2O4-NH2 are given. These images show that the synthesized nanoparticles are spherical with an approximate diameter of 40 nm. In Fig. 2b, nanocomposite MgFe2O4-NH2-HKUST-1 is given which can represent the synthesized magnetic composite framework.

Figure 2
figure 2

(a) FE-SEM of MgFe2O4-NH2, (b) FE-SEM of MgFe2O4-NH2-HKUST-1 magnetic composite.

BET analysis

The surface properties of the MgFe2O4-NH2-HKUST-1, such as the surface area, and pore diameter were also examined using BET surface area analysis. The specific surface area of the MgFe2O4-NH2-HKUST-1 composite evaluated was obtained at 297.13 m2 g−1. Also, average pore diameter distribution was investigated using the Barret–Joyner–Halenda (BJH) method. The average pore diameter of the synthesized composite was reported to be 4.26 nm (Table 2). The adsorption–desorption curve of nitrogen gas for the synthesized composite shows I/IV mixed type isotherm, which means MgFe2O4-NH2 nanoparticles are with microporous and mesoporous structures at the same time, as shown in Fig. 3a.

Table 2 Information about the porosity of the synthesized composition.
Figure 3
figure 3

(a) Nitrogen gas adsorption–desorption curve for the synthesized composite. (b) The thermal analysis of MgFe2O4-NH2-HKUST-1. (c) Magnetic analysis spectrum of (1) MgFe2O4-NH2 magnetic nanoparticle, (2) MgFe2O4-NH2-HKUST-1 magnetic composite. (d) Zeta potential of magnetic composite MgFe2O4-NH2-HKUST-1.

TGA analysis

The thermal stability of the MgFe2O4-NH2-HKUST-1 composite was estimated via TGA. The TGA profile depicted three weight loss steps in the tested temperature range of 50–700 °C (Fig. 3b). The first weight loss %20 appeared in the temperature range of 80–150 °C, which probably indicates the removal of surface water or residual solvent and physisorbed and chemisorbed H2O molecules in the sample. In the second stage, in the temperature range of 150–420 °C, organic binders begin to degrade and eventually lead to the complete collapse of the composite, and the remaining mass in this stage reaches 45% of the initial mass. In the third stage, with an increase in temperature from 420 °C, an increase in mass of about 2% by weight is observed. This increase in mass can be due to the formation of some oxides that are not stable at higher temperatures and gradually decompose. Also, the approximate stability of the sample mass in the range of 40% of the initial mass can be attributed to the presence of CuO and Fe3O2 compounds23,26,27,28.

VSM analysis

To study the magnetic behavior of MgFe2O4-NH2 nanoparticles and MgFe2O4-NH2-HKUST-1 composite, magnetization measurements were performed by VSM. As seen in (Fig. 3c (1), the value of saturation magnetic (Ms) was 28.48 emu g−1 for MgFe2O4-NH2 nanoparticles and according to Fig. 3c (2), the maximum saturation magnetization of the MgFe2O4-NH2-HKUST-1 composite was obtained 8.13 emu g−1, which is enough to quickly collect it by a strong magnet. from a large volume of water. The amount of saturation magnetization of magnetic composite has decreased compared to magnetic nanoparticles, which can be caused by an increase in the thickness of the non-magnetic component. Also, due to the reduction of the coercivity force (HC), it is concluded that the synthesized sorbent has superparamagnetic properties.

Zeta potential

To check the surface charge of the synthesized composite, the zeta potential was used. The zeta potential of the sorbent is one of the factors that can affect the adsorption capacity. According to Fig. 3d, the results showed that the surface charge of the synthesized sorbent is negative and equal to − 20.5 mV, so MG, CV, and MB cationic dyes are adsorbed on the surface of the sorbent.

Optimization of experimental conditions for dyes removal

To obtain more effective adsorption of MG, CV, and MB, the effect of adsorption conditions was investigated and optimized. These parameters are initial solution pH, amount of sorbent, and contact time.

Initial solution pH

In this procedure, adsorption experiments of MG, CV, and, MB were done within the solution pH ranging from 3.0 to 10.0, and %removal was calculated (Fig. 4a–c). The adsorption capacities of MgFe2O4-NH2-HKUST-1 for MG, CV, and MB increased with the solution pH increasing to 5.5, 5, and 7. However, the adsorption capacity decreased up to 10. According to the pKa and cationic nature of these dyes at the mentioned pH and also based on the zeta potential analysis that shows the sorbent surface is negative it can be concluded these cationic dyes are protonated at the tested pH and are probably electrostatically adsorbed by the sorbent.

Figure 4
figure 4

The effect of pH on the removal process of (a) MG, (b) CV, and (c) MB by the sorbent in the range of 3.0–10.0 and the graph of the removal percentage of (d) MG, (e) CV, and (f) MB from the solution according to the weight of the sorbent.

Amount of sorbent

The amount of sorbent could directly affect the adsorption capacity. To obtain the optimal adsorption conditions, experiments were carried out by the addition of 1–12.0 mg, 1–10 mg, and 0.25–5 mg of sorbents to a series of 5 mL of 1.3 × 10−5 mol/L solution of MG and CV and MB, respectively. The optimum weight of sorbent for the removal of MG, CV, and MB has obtained 10 mg, 5.5 mg, and 1 mg, respectively as shown in Fig. 4d–f.

Adsorption time

The adsorption rate is an important factor. Absorbance spectra for MG, CV, and MB were recorded by time in the presence of sorbent. The optimal time for three dyes was 5 min, with a high removal percentage which is one of the excellent features of the synthesized sorbent.

Stability and reproducibility

According to the tests, the synthesized adsorbent can be used for at least 5 cycles without significant decrease in its efficiency. Also to check the reproducibility, adsorbents were synthesized in different times and removal experiments performed under the mentioned optimal conditions. The reproducibility of the adsorbent for 3 dyes is reported in Table 3.

Table 3 Reproducibility tests.

Adsorption capacity and isotherm

To describe the adsorption mechanism for MG, CV, and MB, the values of 1/qe versus 1/Ce were plotted for the Langmuir isotherm. The values of Ln qe versus Ln Ce were plotted for the Freundlich isotherm. Equations (2) and (3) express the linear form of Langmuir and Freundlich isotherms, respectively:

$$ \frac{1}{{q_{e} }} = \frac{1}{{q_{max} K_{L} C_{e} }} + \frac{1}{{q_{max} }} $$
(2)
$$ Lnq_{e} = LnK_{F} + \frac{1}{n}LnC_{e} $$
(3)

where Ce (mg L−1) represents the equilibrium concentration of MG, CV, and MB; qe (mg g−1) is the equilibrium adsorption capacity; qmax (mg g−1) is the maximum adsorption capacity; KL (L mg−1 or L mol−1) is Langmuir constant represents the adsorption energy and KF and n are the Freundlich constants29. Figure 5 and Table 4 show Langmuir and Freundlich isotherm diagrams and results for MG, CV, and MB.

Figure 5
figure 5

Langmuir and Freundlich isotherm diagram of MG (a,b), CV (c,d), and MB (e,f).

Table 4 Langmuir and Freundlich isotherm constants of MG, CV, and MB constants.

Adsorption kinetics

Adsorption rate is an important characteristic for the evaluation of sorbents. Fast adsorption onto MgFe2O4-NH2-HKUST-1 occurred in the initial adsorption stage. For example, more than 75% of dyes were removed within 5 min when the initial MG concentration was 10−5 mol/L with 10 mg of sorbent and CV concentration was 1.3 × 10−5 mol/L with 5.5 mg of sorbent, and MB concentration was 1.3 × 10−5 mol/L with 1 mg of sorbent. To further analyze and calculate the kinetic parameters, the experimental data were fitted by two kinetic models: the pseudo-first-order Eq. (4) and pseudo-second-order Eq. (5) kinetic models30:

$$ Log(q_{e} - q_{t} ) = Logq_{e} - \frac{{k_{1} t}}{2.303} $$
(4)
$$ \frac{t}{{q_{t} }} = \frac{1}{{k_{2} q_{e}^{2} }} + \frac{t}{{q_{e} }} $$
(5)

where qt (mg g−1) and qe (mg g−1) are the amounts of MG, CV, and MB adsorbed at time t (min) and the amount at adsorption equilibrium, respectively, and k1 (min−1) and k2 (g mg−1 min−1) are the pseudo-first-order and pseudo-second-order rate constants, respectively.

The fitting results (Table 5) show that the adsorption of MG, CV, and MB onto MgFe2O4-NH2-HKUST-1 could be well described by the pseudo-second-order kinetic model.

Table 5 Pseudo-first-order and pseudo-second-order kinetic model.

Adsorption thermodynamics

The thermodynamic parameters, standard free energy change (ΔG°, kJ mol−1), enthalpy change (ΔH°, kJ mol−1), and entropy change (ΔS°, J mol−1 K−1) related to the adsorption were determined. These parameters can be calculated with the following equations (Eqs. 6, 7).

$$ \Delta G^\circ = - RTLn\left( {\frac{{q_{e} }}{{C_{e} }}} \right) $$
(6)
$$ \Delta G^\circ = \Delta H^\circ - T\Delta S^\circ $$
(7)

where, T (K) is the temperature in Kelvin, R (8.314 J mol−1 K) is the universal gas constant and K (L mol−1) is the thermodynamic equilibrium constant for the adsorption process calculated from the ratio of the equilibrium adsorption capacity (qe) to the equilibrium concentration of the solution (Ce).

The thermodynamic parameters were determined at 21,116 and 18,217 kJ mol−1 for ΔH and 75.493 and 67.856 J mol−1 K−1 for ΔS for MG and CV respectively. The results confirm an endothermic nature for MG and CV, as the temperature increases, the removal percentage of MG and CV increases. The adsorption process of these two dyes is a possible and spontaneous process. The thermodynamic parameters were determined − 7102.3 kJ mol−1 for ΔH and 6.05 mol−1 K−1 for ΔS for MB. Unlike MG and CV, the adsorption of MB decreased with increasing temperature and the adsorption process was exothermic.

The mechanism of the adsorption process

The organic dye adsorption process occurs because the adsorbent’s surface particles are not in the same environment as the particles within the bulk. Inside the MgFe2O4-NH2-HKUST-1, all of the forces acting between the particles are mutually balanced, but on the surface, the particles are not surrounded by atoms or molecules of their kind, and thus they have unbalanced or residual attractive forces. These adsorbent forces are responsible for attracting dyes to their surface. Some studies have shown that dye adsorption in MOFs is controlled by electrostatic interactions31. Therefore, the pH of the solution is expected to affect the amount of dye adsorbed as a result of the presence or absence of electrical charges on the dye molecules and the adsorbent surface. These dyes have a positive charge at the mentioned optimal pH and according to the results of the zeta potential analysis and the negativity of the surface charge of the absorbent, the adsorption process occurs due to the electrostatic interaction between the cationic dye and the absorbent surface.

Sorbent efficiency in removing other dyes

Industrial effluents and aqueous solutions are a mixture of various pollutants, including organic dyes. The selectivity of a sorbent is important if it can separate a group of specific dyes from other pollutants, and it is one of the features that are considered in the manufacture of sorbents. In this study, magnetic composite MgFe2O4-NH2-HKUST-1 can absorb cationic dyes such as malachite green, crystal violet, and methylene blue while two anionic dyes, metal orange, and methyl red, are not adsorbed on the sorbent surface. This feature can be an advantage for the studied absorber. Figure 6 shows the high adsorption capacity of the sorbent used for cationic dyes, while the adsorption capacity for the other two anionic pollutants is very small.

Figure 6
figure 6

Comparison of the performance of the synthetic composite for removing different dyes.

Comparison with other studies

The synthesized magnetic adsorbent was compared with some adsorbents to remove of MG, CV, and MB and shown in Table 6. As it is known, the synthesized adsorbent shows a good absorption capacity and extremely short time of 5 min for the absorption process. Also, the ability to easily separate the adsorbent with an external magnet is a special feature of the synthesized adsorbent compared to non-magnetic adsorbents.

Table 6 Comparison of adsorption capacities of MG, CV, and MB using various MOFs obtained in the present work and reported in the literature.

Conclusion

In this research, magnetic adsorbent MgFe2O4-NH2-HKUST-1 was synthesized as an efficient adsorbent in absorbing malachite green, crystal violet, and methylene blue. The results showed that the synthesized adsorbent has a negative surface charge that creates an electrostatic attraction between the cationic dyes and the adsorbent surface. The results of this study showed that the adsorption capacity of the magnetic adsorbent is equal to 108.69 mg g−1 for MG, 70.42 mg g−1 for CV, and 156.25 mg g−1 for MB. It was observed that malachite green, crystal violet, and methylene blue respectively at pH = 5.5, 5, and 7 at the optimum time of 5 min, and amounts of adsorbent 10, 5.5, and 1 mg were removed more than 75%. The synthesized adsorbent has a high potential to remove dyes in a very short contact time. In addition, this absorbent with its magnetic property is very quickly and easily collected by an external magnet from the working environment, which easily eliminates the difficult and time-consuming step of separating the solid phase from the solution and using a centrifuge. So the process of absorbing by this absorbent is an efficient, fast, and economical process. MgFe2O4-NH2-HKUST-1 composite as a magnetic adsorbent can be a promising future for environment-based processes.