1 Introduction

An increase in factories, industrial activity, and demographic expansion has negatively impacted the environment by producing polluted and dangerous polluted water. Contaminated water flows primarily consist of emerging contaminants, which are persistent non-biodegradable chemicals [1]. These substances linger in the environment, accumulate within food chains, and present hazards not only to human well-being but also to ecosystems and microbial populations [2,3,4]. The quality of water is crucial in determining its impact on human health and ecosystem equilibrium, playing a vital role in the advancement of technologies aimed at removing pollutants to support the global water cycle. Synthetic drugs represent a significant and growing category of pollutants, with their presence in aquatic environments posing a substantial environmental risk. Their stability and resistance to biodegradation contribute to their accumulation [5].

Water polluted by toxic heavy metals is a major problem worldwide. Strict environmental regulations on heavy metal discharge and growing demand for purified water exhibiting minimal concentrations of heavy metals content have highlighted the urgent need to develop efficient heavy metal removal technologies.

Water treatment is essential to make water suitable for various uses such as domestic activities, industrial, and agricultural activities. Unfortunately, however, the polluted water treatment process itself has become an industry that pollutes the environment in various ways [6]. In the past, water treatment methods were limited, but with advances in knowledge and technology, researchers have developed environmentally friendly and effective contaminated water treatment methods [7,8,9].

Seham Nagib et al. propose a method for the recovery of vanadium from hydrodesulfurization waste catalysts using calix resorcinarenes, which not only offers a solution for the management of hazardous waste but also allows for the recovery of precious metals [10].

Ferrite-based systems have garnered significant attention in recent scientific and technological research, owing to their unique magnetic properties, thermal and chemical stability, and ease of synthesis. These materials have proven particularly effective in redox processes, playing an important role in various applications ranging from water treatment to environmental catalysis. Recent studies, the researchers have highlighted the efficiency of ferrites in separation and purification processes, offering innovative solutions for pollutant degradation and environmental purification. The ability of ferrites to facilitate oxidation and reduction reactions, combined with their applicability in sustainable and environmental contexts, fully justifies the choice to investigate them. This research aligns with ongoing efforts to explore the potential of ferrites in advanced scientific and technological applications, underscoring their growing importance in the development of new solutions to current environmental challenges [11,12,13].

The unique properties of nanosorbents offer unprecedented opportunities for the highly efficient and cost-effective metals removal. Different nanoparticles and dendrimers extensive research have been conducted to explore their potential, while magnetite nanoparticles extensive research has been conducted to investigate their potential uses in the field of biomedicine [14]. Their application in the environmental field has received limited attention in previous studies [15].

Scientific research shows that adsorption is a more efficient method used in water treatment and is increasingly used because of its affordability, convenient availability of raw materials, and decreased usage of treatment agents [16, 17]. It has the capability to eliminate not only heavy metals present in polluted water but also organic substances and various contaminants in water [18, 19]. Recent concerns focus using nanomaterials for the purpose of decreasing COD and BOD5 levels, while taking into account ecological safety concerns [20].

Magnetite nanoparticles have gained significant popularity in contaminated water treatment, primarily due to their large specific surface area, short diffusion paths, and easily adaptable surface functional groups for targeted modifications. In addition, the use of an external magnetic field greatly enhances the separation efficiency of these nanoparticles. This not only simplifies their extraction, but also facilitates their subsequent recycling and reuse, making the process more sustainable and cost-effective [21].

Recent research has presented evidence indicating the beneficial impact of magnetic fields on wastewater treatment. Magnetic fields have also been examined in terms of their potential to safeguard human health [22].

On the other hand, numerous researchers have investigated the use of magnetic fields to treat water in various areas. For example, magnetic water treatment has been tested to see how it affects the growth of fruits and vegetables. Some studies found that using these devices led to better yields. For instance, the yield of melon crops increased by 39%, and potato yields went up by 41% (with a magnetic field strength of 0.33 T) and 52% (with a magnetic field strength of 0.29 T) compared to using untreated water [23]. Additionally, scientists have looked into how magnetic treatment affects the physical and chemical properties of water. They examined factors like pH, conductivity, surface tension, turbidity, and evaporation rate. By using magnetic devices with different strengths (0.5 and 0.29 Tesla), they found that applying a magnetic field made the water’s pH decrease. This change seemed to enhance the germination rate and seed capacity before the seeds developed into seedlings [24]. Some researchers even explored the effects of magnetic treatment on melon production in areas with high soil salinity. They discovered that applying a permanent magnetic treatment lowered the water’s electrical conductivity while increasing its pH. These changes led to a significant increase in melon crop yields. The researchers focused on a concept involving radical ion pairs as the entities affected by magnetic fields and the source of resulting effects. Several scientists reported that exposing irrigation water to a magnetic field prior to use improved plant productivity and altered the water and mineral metabolism of the plants [25,26,27]. The magnetic treatments also impacted the physical parameters of water, such as pH and electrical conductivity. The application of a magnetic field reduced water’s surface tension by up to 24% and increased the amount of water that evaporated compared to untreated water [28].

Iron oxide nanoparticles, especially magnetite (Fe3O4), are effective in water purification, as they can remove heavy metals, dyes, and organic pollutants due to their large surface area and strong adsorption capacity. They are also magnetically recoverable, making them practical for water treatment systems. The researchers indicate that adding cuprite-doped magnetite nanoparticles to epoxy coatings improves the performance of marine steel coatings, highlighting their potential application in water treatment technologies [29].

Reducing COD and BOD5 is of utmost importance to levels that allow this sewage to be discharged into rivers. According to the ISO standard (International-Organization for the Standardization of Discharge of Sewage to the Aquatic Environment), the COD value is required to be less than 30mgO2/L, and the BOD5 value is less than 250mgO2/L.

Today, many researchers focus on COD and BOD5 removal using magnetite nanoparticles, for example: [30] studied COD reduction in oilfield water and regeneration using modified Fe3O4 nanoparticles, and furthermore used Fe3O4-modified composites for addressing COD in industrial polluted water. Fe3O4/mordenite for COD reduction in oily refinery polluted water [31]. The utilization of magnetic nanoparticle–based magnetic separation technology has been explored for the purpose of removing COD from pre-treated palm oil polluted water [32].

This study is the first focusing on diminishing BOD5 and COD levels in water by adsorption on magnetite nanoparticles under a high magnetic intensity. Adsorption on magnetic nanoparticles is enhanced by utilization of a magnetic field through physical excitation of ions as well as molecules of nanoparticles and organic pollutants. Furthermore, the implementation of a magnetic field simplifies the separation of magnetite nanoparticles.

2 Materials and methods

2.1 Description of the samples and magnetic process

The water samples were collected from the Wadi El Bey river Tunisia situated in northeastern Tunisia, spans between latitudes 36° 35′ 00″ and 36° 42′ 00″ N, and longitudes 10° 28′ 00″ and 10° 33′ 00″ E. It encompasses an area of 475 km2, draining into the Grombalia plain. The area experiences an average potential evapotranspiration of approximately 1300 mm per year, with higher rates in the summer due to elevated temperatures and lower MNP are employed for the treatment of polluted water in an innovative process. These particles are introduced into the water, where they act as purification agents by attaching to contaminants. A magnetic field with an intensity of 1 Tesla, generated by a device from Delta Water, is then applied. This magnetic field intensifies the effectiveness of the MNPS by enhancing their interaction with the pollutants over a period of 50 min.

2.2 Synthesis of MNPs

MNPs were prepared by the co-precipitation protocol presented in Fig. 1, following the Massart method with some modifications [33] as described below. Deionized water (20 mL) was combined with 3.5 g of iron (II) chloride to prepare the Fe2+ precursor solution (S1), while for a Fe+3 precursor solution (S2), by dissolving 8.64 g of iron (III) chloride in 20 mL of deionized water. For the third solution (S3), dissolve 7.2 g of sodium hydroxide in 100 mL of deionized water. For each experiment, the combined volume of the three solutions was 140 mL, and the reaction took place at 55 °C for a duration of 60 min, maintaining chemical reaction volume by adding deionized water. The obtained MNPs were magnetically decanted and washed with deionized water until they attained a neutral pH (7–8). Well-dried magnetite nanoparticles were stored for characterization as follows.

Fig. 1
figure 1

Schematic representation of the followed simple synthesis route mixing Fe2+ (S1) and Fe3+ (S3) with NaOH aqueous solutions (S3) to produce magnetite nanoparticles (MNPs)

2.3 Characterization

The morphological aspect of MNPs was characterized using a FEG TECNAI T20 transmission electron microscope (TEM) at an acceleration voltage of 200 kV and Quanta FEG 650 model scanning electron microscope (SEM) at 10 kV, 120,000 of magnification, and 12.1 mm of working distance. For TEM analysis, samples were conditioned from a dilute solution containing the MNPs by dropping the colloid onto a holey carbon cupper grid to determine the morphology and particle size distribution. Statically analysis (n = 200) was performed on TEM images using ImageJ analysis software. The chemical composition of the samples was analyzed using a Perkin Elmer FTIR frontier Fourier transform infrared spectrometer. Additionally, chemical analysis was performed using an energy-dispersive X-ray (EDX) detector on a Quanta FEG 650 model scanning electron microscope (SEM) operating at 10 kV. The crystal structure of the resulting product was investigated using a Bruker D8 Advance high-resolution X-ray powder diffractometer (XRD) with Cu-K radiation. (1.5418 Å).

3 Results and discussion

3.1 MNP characterization

3.1.1 Electron microscopy analysis

TEM analysis revealed partially agglomerated particles with an average particle size = 10 ± 2 nm (Fig. 2a). The histogram of the static sample analysis (n = 200) is shown in Fig. 2b. It was previously reported that nanoparticle agglomeration was induced by van der Waals forces arise due to operating conditions and the drying process. The existence of remaining water and NaOH facilitated the clustering of nanoparticles due to a nanometer size in the tens of nanometers.

Fig. 2
figure 2

Electron microscopy analysis from MNPs. Typical TEM image from MNPs (a), size distribution histogram (n = 200) from TEM image analysis (b), SEM image showing MNP agglomerates (c), and EDS spectrum (recorded at 10 kV) with the compositional table results (d)

The SEM image (Fig. 2c) confirmed the agglomeration in cumulus over 500 nm and EDS spectrum (Fig. 2d) shown clearly the elemental contributions from FeL (0.705 eV), OK (0.523 eV), and CK (0.523 eV) present in the sample. According to the table of elemental analysis result, the sample contains 72.94% Fe and 24.68% O in mass. The presence of 2.38% of carbon can be attributed to the utilization of carbon tape for securing the sample to the holder.

It is reported that magnetism is size-dependent; the particle size must reach a small diameter, the so-called critical small diameter “D” [34]. It is well known that particles with an average diameter of up to 100 nm are generally referred to as bulk material; while below this size particles belong to the category of NPs. Wallyn et al. reveal that bulk materials made of ferromagnetic, ferrimagnetic, or antiferromagnetic particles have a microstructure composed of many magnetic domains, called Weiss domains, separated by walls, named Bloch walls. These domain walls are designed to reduce magnetic stray energy [34]. Thus, in each domain of the particle, a collective coupling of spins makes the spins is collinear along one direction due to the magnetic anisotropy energy [35,36,37]. On the contrary, for NPs, the magnetization is uniform in any of them but different from one domain to another one. Thus, at room temperature and under zero magnetic field, all domains have their own spin alignment rendering the bulk material macroscopically non-magnetic or with a global magnetization near zero due to the balance of every Weiss domains’ magnetism by their next neighbor domains. However, applying an external magnetic field can induce wall movement—or in other words domain nucleation. In the case of a small magnetic field or, in the case of an intense magnetic field, this causes each spin of each single Weiss domain rotate away from their easy axis magnetization and be reoriented along an unique and same direction aiming to turn the bulk material in to a magnet. This uniform and finite magnetization persist as long as the magnetic field is applied and stops right after its removal [36,37,38]. These statements confirmed the study done by Morrish and Yu who determined that a single-domain magnetite particle is achieved when the diameter of particle is less than 50 nm [39]. However, in other literature, iron oxides and the magnetic particles in general become single domain when the particles size is smaller than 100 nm, and this limit is a function of material properties [40]. According to Sunaryono et al., the magnetization has particular relation between the coercivity field and the particle size, which is associated with the theory of magnetic domains. They have also revealed that the magnetic properties of samples increases with increasing particles size [41]. In the Ismail study, the effect of sintering temperature and times which affect the microstructure characteristic by increasing grain size and leads to abnormal grains and pores then the decrease in density, thus decreases the magnetic properties, mainly the volume magnetization and the magnetic induction. They attributed the nonlinear relationship to the characteristic of the transition from single-domain to multi-domain grains [42]. This phenomenon is particularly evident in the coercivity values versus particle or grain size of the magnetic material [43]. According to Lin et al., for MNPs prepared by mechanochemical reaction, the coercivity (Hc) initially increases with decreasing crystallite size, reaching a maximum value of 110 Oe at 22.2 nm and then decreases for each further decrease in particle size [44]. Therefore, the particle size of synthesized magnetite may be adequate for the treatment of polluted water by coupling with an intense magnetic system.

3.1.2 FTIR spectra

Figure 3 displays the FTIR spectra of the MNPS samples. It exhibits a noticeable absorption band at 538 cm−1, corresponding to the stretching of Fe-O functional groups inherent to the magnetite lattice (Fe3O4).

Fig. 3
figure 3

FTIR spectra of MNP samples. The main interactions between hydroxyl groups (3411 and 1636 cm−1) and Fe (538 cm−1) were detected

Another important result is the absence of vibration mode of FeII-O assigned to maghemite, which appears generally at 613.32 cm−1, 509.17 cm−1, and mentioned in the literature. This result clearly shows that the obtained nano-product is composed only by pure magnetite.

O-H bending vibration and hydrogen-bonded water molecules adhering to the surface are responsible for two more vibration bands that are located at 3411 cm−1 and 1636 cm−1 [35].

The outcomes of this research are in agreement with earlier studies that identified a broad and intense absorption peak within the range of 540 to 630 cm−1, which corresponds to Fe-O bonds in bulk magnetite.

Waldron’s work is cited by [36] findings support the notion that magnetite can form crystals with interconnected structures, where atoms are bonded by balanced forces such as ionic, covalent, or van der Waals interactions. The observed outcomes suggest that vibrational modes of the Fe-O bond are linked to octahedral and tetrahedral sites, manifesting around 440 cm−1 and 560 cm−1, respectively.

3.1.3 (BET) surface area analysis

The MNPs underwent analysis using the BET technique to ascertain the specific surface area and distribution of porosity within the powder. These parameters are crucial for adsorbing pollutants in polluted water and enabling the removal of various molecules. The resulting BET surface area was 121.44 ± 0.14 m2/g. The pore volume measures approximately 0.28cm3/g, and the pore diameter is 10.30nm.

As depicted in Fig. 4, the acquired MNPs exhibit characteristics akin to a type III isotherm, where the adsorbate-adsorbate interaction dominates while the substrate exerts weak interactions. However, the BET surface area is considerable and suitable for adsorption in heterogeneous surfaces.

Fig. 4
figure 4

Performing BET analysis and constructing nitrogen adsorption–desorption isotherms, followed by the creation of pore size distribution curves

3.1.4 Thermal analysis

Figure 5 depicts the thermogravimetric analysis (TGA) curve of the Fe3O4 precursor. The TGA curve in the thermogram shows two distinct mass loss phases. Between 50 and 300 °C, the initial mass loss phase is slow. The removal of surface adsorbed water was responsible for the mass loss, which was 3.80%.

Fig. 5
figure 5

Thermogravimetric analysis of FeO4 nanostructures

The removal of physically adsorbed water during the decomposition of Fe3O4 is revealed by the second stage of mass loss, which occurs between 300 and 500°C and indicates a mass loss of 1.80%. The weight of the magnetite nanoparticles was nearly constant above 500°C, but an exothermic peak was observed around 600°C, indicating a phase transition from Fe3O4 to Fe2O3. The phase transition was carried out at temperatures between 550 and 700°C.

3.1.5 XRD analysis

Figure 6 illustrates the XRD patterns of the magnetite nanoparticles. All diffraction peaks are cataloged according to the magnetite (Fe3O4) ICSD pattern with the number 01-080-0390. The findings in the ICSD pattern of magnetite (Fe3O4) [37,38,39,40,41,42,43,44,45,46,47,48,49,50] are consistent with this outcome.

Fig. 6
figure 6

Structural analysis of FeO4 nanoparticles via X-ray diffraction

The produced magnetite has a cubic spinel structure, according to the Fe3O4 NP XRD pattern recorded in the literature [51]. The crystalline and high purity of magnetite with nanoparticles size were confirmed by the extent of peak broadening and the absence of unaccounted peaks. Using Debye equation Scherrer’s (1), the average crystal size of the magnetite nanoparticles was approximated [52].

$$D=\frac{K\ast \lambda }{\beta \ast \cos \theta }$$
(1)

where D represents the average crystal size, λ signifies the wavelength of the X-ray radiation (1.5406 Å), K denotes the dimensionless form factor (0.9), θ signifies the Bragg’s angle in degrees, and β signifies the line’s FWHM (full width at half maximum) in radians [53].

The FWHM of the Fe3O4 prominent peak (2 = 35.466°) of XRD patterns, which corresponds to the plane, was used to estimate the mean crystalline size (100). The average crystal size of the synthesized nanomaterials is ~10 nm.

3.2 MNPs as water quality enhancement agents

3.2.1 Impacts of contact duration

The influence of contact time on the efficiency of BOD5 and COD removal was initially tested for 177 and 56.5 mg/L, respectively, at times (15, 30, 45, 60, and 90 min) with 1 g of magnetite NPs due to the significance of contact time on the reduction of COD and BOD5 by magnetite. The pH of the contaminated water was kept at 8, stirring occurred at approximately 200 rpm, and the ambient temperature was maintained at 20±1°C. The results obtained showed a high level of COD and BOD5 removal reaching 61% within 50 min. This implies that in order to achieve optimal efficiency, the contact time should be set to a minimum of 50 min (Fig. 7). Nevertheless, the outcomes revealed that the removal efficiency for COD and BOD5 reached a plateau following a contact time of 50 min. After 60 min, the equilibrium time of treatment is attained because the absorption capacity of COD and BOD5 has remained constant. According to the study carried out by [54], the impact of MNPs treatment on polluted water was demonstrated by synthesizing nanoparticles using the combustion method, with a diameter of 17 nm. It was concluded that the optimum time for achieving maximum efficiency in reducing COD and BOD5 was 80 min. These results suggest that the diameter of the nanoparticles and the method of synthesis influence the time required to achieve maximum efficiency in reducing pollution, underlining the importance of these parameters in the treatment process.

Fig. 7
figure 7

Impact of contact time on removal efficiency

3.2.2 Effect of iron oxide nanoparticles concentration

Figure 8 shows the removal efficiency of COD and BOD5 from water contaminated with different concentrations of iron oxide nanoparticles. The results indicate that the adsorption efficiency of COD increased from 40 to 65% when the dosage of Fe3O4-MNP was increased from 0.5 to 1.5 g/L, and that the value remained unchanged from the mass of 0.8 g/L. For BOD5, the removal efficiency increased from 64 to 65% in the range from 0.8 to 1 g/L and decreased with increasing magnetite dosage. This can be due to the fact that a rise in adsorbent dose causes a rise in the amount of nanoparticle active sites and the specific adsorption surface, which causes a significant increase in the nanoparticle molecules’ capacity for adsorption on magnetite surfaces.

Fig. 8
figure 8

Effect of iron oxide nanoparticle concentrations on the removal efficiency

3.2.3 Effect of pH

Experiments were performed in neutral acidic and alkaline media with BOD5 and COD concentrations (177 and 56.5 mg/L), pH values (4, 6, 7, 8, and 9) using 0.8 g/L. Fe3O4 NPs, contact time 50 min, stirring rate 200 rpm, and ambient temperature 25 ± 1 °C.

At equilibrium, the removal efficiencies of COD and BOD5 were (61, 62.2, 63.4, 64.4, and 63.8%), respectively and (60.8, 63, 64.2, 65, and 64.8%), in this order as shown Fig. 9.

Fig. 9
figure 9

Effect of pH value on removal efficiency

The outcomes revealed that the peak removal efficiency occurred at a pH of 8, within weakly alkaline conditions. This finding is attributable to the behavior of small magnetite particles in highly acidic environments; they degrade due to the influence of acid, resulting in nanoparticles with vacant sites that affect adsorption activity. Conversely, in strongly alkaline solutions, an abundance of OH- ions can intensify the removal rate of COD and BOD5 by activating adsorption sites for negatively charged ions. Notably, numerous researchers have observed similar outcomes using varied adsorbent materials for polluted water treatment, thus highlighting the efficacy of pH = 8.

3.2.4 Impact of stirring rate

Stirring speed affects the adsorption efficiency and is a crucial parameter in the investigation of COD and BOD5 removal. In this study, the concentration of magnetite was 0.8 g/L, pH 8, room temperature (25 ± 1 °C) and stirred for 50 min to study the effect of stirring speed on the efficiency of removal of COD and BOD5 under the concentration of 177 and 56.5 mg/lift. According to Fig. 10, the elimination efficiencies for BOD5 and COD were, respectively, 62, 63.3, 64.8, 64.4, and 63% and 61.3, 64, 65.3, 65.2, and 64%, respectively. According to the results, 200 rpm was the ideal stirring speed, while stirring speeds above this point may not result in increased removal efficiency.

Fig. 10
figure 10

Influence of stirring rate on the removal efficiency

Based on the research conducted by [54], it was found that a stirring rate of 250 rpm is ideal for achieving the highest efficiency in reducing COD and BOD5 levels. These findings indicate that the size of nanoparticles and the synthesis method have an impact on the time needed to reach peak pollution reduction efficiency, highlighting the significance of these factors in the treatment procedure.

3.3 Coupling adsorption and magnetic separation for the reduction of COD and BOD5

After identifying the optimal conditions for water treatment, the ideal parameters were defined as follows: a contact time of 50 min, a concentration of 0.8 g/L of iron oxide nanoparticles, a pH of 8, and a mixing speed of 200 rpm. Under these conditions, the treatment of polluted water using iron oxide nanoparticles (MNPs), without magnetic coupling, resulted in a significant COD reduction (64%) and a BOD5 reduction (65%). Subsequently, additional treatment was conducted by introducing a magnetic field using an intensity of 1 Tesla combined with the nanoparticle treatments under the determined optimal conditions. The results showed a significant improvement, with a decrease of 84% in COD and 85% in BOD5, indicating a reduction improvement of 20%. These findings are consistent with our previous study [54], which examined the impact of MNP treatment on polluted water using magnetic coupling with a field intensity of 0.33 Tesla. The results of this study revealed a reduction of 76% in COD and 78% in BOD5, confirming that the higher the magnetic intensity is, the more significant the reduction in contaminants becomes. Based on these studies, the application of a high-intensity magnetic field can improve the removal of COD and BOD5 from polluted water. When magnetic fields are combined with Fe3O4 nanoparticles, removal efficiency can significantly improve.

Furthermore, the specific outcomes of this investigation highlight the efficiency of magnetic nanoparticles synthesized via the co-precipitation method. The highest reduction efficiencies of 84% for COD and 85% for BOD5 were achieved after 50 min of contact time, at a pH of 8, using 1g/l of MNPs, and a stirring rate set at 200 rpm. In addition, the application of a magnetic field with an intensity of 1 T significantly enhanced the removal efficiencies.

4 Conclusions

The co-precipitation method for synthesizing magnetite nanoparticles appears promising as an adsorbent for removing organic compounds from contaminated water. During the experiments, a significant reduction of 64% for COD and 65% for BOD5 was achieved in just 50 min, using optimal conditions such as a pH of 8, a concentration of magnetite nanoparticles at 0.8 g/l, and an agitation speed of 200 revolutions per minute.

However, the most significant advancement came from using a very strong magnetic field of 1 Tesla (DELTA WATER) under the same optimal conditions. This innovative approach significantly boosted the reduction efficiency, increasing it from 20% to a remarkable 84% for COD and reaching an impressive 85% for BOD5. The use of this high-intensity magnetic field opens up new possibilities in the treatment of contaminated water, highlighting its substantial potential for more effective removal of organic contaminants.