1 Introduction

In recent days, magnetic nanoparticles have been widely synthesized for different technological applications like microwave units, computer memory chips and high-density storage media. MgFNPs, a type of magnetic nanoparticle, are a promising material for catalysts, gas sensors, humidity sensors and inorganic pigment, among other applications. The synthesis of fine powders of high purity is indispensable for these applications. Nowadays, numerous chemical methods have been used to prepare MgFNPs, including sol–gel combustion, polymeric method, microwave combustion, microemulsion, co-precipitation, hydrothermal methods and reverse micelle [1, 2], etc. Nowadays, green synthesis methods are widely used to prepare different types of nanoparticles for various applications [3,4,5]. Druc et al. [6] prepared Mg-ferrite nanoparticles using sol–gel auto-combustion route. A variety of fuels like glycine, citric acid, urea, tartaric acid, cellulose and hexamethylenetetramine were used to prepare Mg-ferrite nanoparticles. A single-phase MgFNPs have been prepared using glycine, citric acid and tartaric acid. The secondary impurity phase has been identified for the samples prepared by urea, cellulose and hexamethylenetetramine, even at higher-order annealing treatment. However, the pure single-phase MgFNPs obtained by Nakagomi et al. [7] and Franco et al. [8] using urea as a fuel. Using citrate gel route many researchers synthesized MgFNPs without any secondary impurity phases [9]. Pure single-phase nanoparticles were successfully obtained by glycine-based synthesis of MgFNPs by the auto-combustion process [10]. Generally, in the synthesis of MgFNPs, α-Fe2O3 exists as an impurity phase. It is also worth finding a new route to obtain single-phase MgFNPs. Ngozi Madubuonu et.al [11] reported the Psidium guajava aqueous extract used green synthesis of Fe oxide nanoparticles and their performance against antibacterial activities. Samson O. Aisida et.al [5] reported structural, optical, morphological and magnetic properties of green synthesized ZnFe2O4 nanoparticles for moderate hyperthermia applications. The main aim of this work is to synthesize MgFNPs using the lemon juice-assisted combustion method. The lemon juice was used successfully in order to synthesize fine and pure nanophase MgFNPs. The crystallite size, morphology and antimicrobial activities of MgFNPs have been examined.

2 Experimental methods

2.1 Synthesis

Lemon juice-aided combustion was used to make MgFNPs. To make MgFNPs nanoparticles, raw materials such as analytical grade Mg(NO3)26H2O and Fe (NO3)39H2O were used. These materials were taken at high molar concentrations to keep the stoichiometric Mg/Fe ratio of 1:2. 50 mL lemon juice is added to the precursor solutions to act as a chelating agent (natural citric acid). This solution mixture was thoroughly blended for 1 h. The mixed solution was further stirred with a magnetic stirrer at 100 °C until the necessary final ferrite powder was obtained. In an agate mortar, the ferrite powder was milled into a fine powder and a portion of it was heat treated in the air at 600 °C and 900 °C. For our convenience, the samples were coded M-1 (as-prepared), M-2 (annealed at 600 °C) and M-3(annealed at 900 °C). The structural, microstructural and antimicrobial activities of these samples were all examined.

2.2 Techniques of characterization

Phillip's X'pert-PRO X-ray powder diffractometer with CuK al1 (= 1.5406) radiation was used to record XRD patterns.

A JEOL JSM-6610L scanning electron microscope with EDX was used to capture SEM images and EDX spectra. The antibacterial property of MFNPs was investigated using the plate count method with two bacterial species, E. coli (ATCC 14,948) and B. subtilis (ATCC 11,774).

3 Results and discussion

XRD patterns of sintered Mg-nanoferrite and as-prepared Mg-nanoferrite are shown in Fig.1. The formation of Mg-ferrite with cubic spinel structure is confirmed by the observed diffraction peaks. The diffraction spikes (220), (311), (400), (422), (511) and (440) are well-suited to the fd3 m space group, which corresponds to JCPDS card no. 01-071-1232. The sharpness of a diffraction peak is slowly rising, but expansion occurs near the base of the peaks. It is because ferrite nanoparticles of different sizes coexist. As previously mentioned, the formation of the Mg-ferrite spinel phase is highly dependent on preparation methods, sintering temperature, fuel molar fractions and other variables. Aslibeiki et al. discovered secondary phases of alpha-Fe2O3 in a MgFe2O4 sample sintered at 600 °C [12]. Prasad et al. [13] looked into the function of precursors in the formation of different spinel ferrites. A thorough examination of secondary phase formation in various spinel ferrites has been reported. They proposed that the local oxygen condition and heat treatment influence the formation of secondary phases in spinel ferrite systems. They argue that when sintering at a higher temperature, the thermal energy is adequate to remove the internal oxygen environment that causes ferrite decomposition, while when sintering at a lower temperature, the thermal energy is insufficient. Structural parameters such as crystallite size (t) and lattice constant (a) were calculated using the formulas t = (0.9 λ) / (β cos ɵ) and a2 = d2 (h2 + k2 + l2). In addition, the experimental lattice parameter decreases monotonically from 8.403 to 8.397 as the sintering temperature rises. The rearrangement of cations between the spinel structure sites A- and B- is clearly visible. The crystallite sizes of the samples range from 10.1 to 32.9 nm on average. The scale of the crystallite expands as the sintering temperature rises. By increasing grain boundary energy, the sintering process promotes crystallization.

Fig. 1
figure 1

XRD pattern of MgFe2O4 nanoparticles

The analysis of how objects appear is known as morphology. The morphology and elemental composition of a sample annealed at 900 °C (M3) are shown in Fig. 2(a, b and c). The existence of micro-pictures makes it difficult to determine the form of ferrite nanoparticles. Powerful magnetic interactions, on the other hands, clearly show the formation of nanosized ferrite particles coalescing into clusters of various sizes. The EDX spectra are shown in Fig. 2b. The achievement of the ferrite process was revealed under-considered stoichiometry when the elemental ratios of Mg/Fe and Fe/O were close to 0.5. Other elemental spikes and oxygen depletion have not been detected in spectra. The MgFe2O4 nanoparticles in sample M3 are almost spherical in shape, with an average particle size of 36.7 nm, according to TEM images (Fig. 2c). The SAED pattern clearly established the polycrystalline nature of the sample.

Fig. 2
figure 2

SEM, EDX and TEM images of MgFe2O4 nanoparticles

The antibacterial activity of MgFe2O4 nanoparticles was calculated using the plate counting method against Gram-positive (B.subtilis) and Gram-negative (E.coli) bacteria. The pathogens on the different plates were inoculated in the culture media with Gram-positive and Gram-negative pathogens. Then, on the appropriate plates, the synthesized samples of MgFe2O4 nanoparticles at various concentrations (0.1, 1, 10, 25 and 50 Mg/L) were mounted. The percent of toxicity around the samples was assessed after 24 h. The biocidal activity of MgFe2O4 nanoparticles at various temperatures (as-burnt, 600 °C and 900 °C) is shown in Fig. 3. With increasing sample concentrations, MgFe2O4 nanoparticles' antibacterial activity increases. At 50 mg/L, toxicity was observed against Gram-negative (E.coli) and Gram-positive (B.subtilis) bacteria in M1, M2 and M3, with 78 percent and 58 percent, 69 percent and 35 percent and 44 percent and 33 percent, respectively. The antibacterial activity of the MgFe2O4 nanoparticles decreases as the calcination temperature rises from 600 to 900 °C. As the temperature rises, so does the particle size. Since the particle size is smaller at lower temperatures, the killing effect is greater. Since particle size grows larger as temperature rises, the killing effect decreases. As a consequence, as the temperature rises, the particle size rises with it. Table 1 shows the percent of toxicity that is inversely proportional to temperature. When M1, M2 and M3 are compared, M1 has the most potent toxic effect against bacterial pathogens. It is likely due to the size effect. Based on Gram-positive and Gram-negative bacteria, it has been discovered that MgFe2O4 nanoparticles have greater antibacterial activity against Gram-negative bacteria than Gram-positive bacteria, which may be due to variations in cell structure and peptide glycan cell wall thickness [14].

Fig. 3
figure 3

Antibacterial activity of MgFe2O4 nanoparticles

Table 1 Antibacterial activities of MgFe2O4 nanoparticles

4 Conclusions

Lemon juice was used to make pure single-phase MgFe2O4 nanoferrites. The crystallite sizes of the samples were found to be between 10.1 and 32.7 nm. The samples' lattice constant (a) decreases as the annealing temperature rises. The spherical nanoparticle is photographed under a microscope and the measured size matches that of XRD. Gram-positive (B.subtilis) and Gram-negative (E.coli) bacteria were used to test the antibacterial activity of MgFe2O4 nanoparticles. Gram-negative bacteria are more resistant to MgFe2O4 nanoparticles than Gram-positive bacteria.