Introduction

Nanotechnology, manipulation of functional materials having at least one of its dimensions in the nanometers at the atomic or molecular scale, has emerged as an promising multidisciplinary research field in recent times owing to its advanced applications in almost every domain of life (Esfe et al. 2015). Numerous methodologies including physical, chemical and electrochemical routes have been reported in the academic literature for the synthesis of nanomaterials (Kamalakkannan et al. 2016). However, most of the physical methods require experimental setups with high energy consumption values, extreme working conditions, complicated templates, etc. (Alrashed et al. 2018; Sarafraz et al. 2018). Chemical/electrochemical approach suffers from the drawbacks such as the utilization of noxious organic solvents (Hosseini et al. 2017) and hazardous reducing agents (Karimipour et al. 2018), production of harmful by-products and additional electrical setups (Safaei et al. 2016). Owing to these reasons, the focus regarding the synthesis methodologies has now been shifted toward the biochemical synthesis of nanomaterials (Guimarães et al. 2020). This methodology utilizes eco-friendly natural extracts of biomass (such as plants, fungi, bacteria, and algae) as an alternative to harmful chemicals used in the case of chemical/electrochemical methodologies. Advantages (such as the environment-friendly nature of raw materials, low cost/cheap precursors, simple synthetic steps and high efficacy) associated with this green approach has ushered a scientific approach regarding the synthesis methodologies into the new era of safe/non-toxic approach for the production of nanomaterials (Solano et al. 2019; Din et al. 2020).

Metal oxides, particularly magnesium oxide (MgO), based nanoparticles (NPs) have been the center of attention for the past two decades owing to their exclusive and unique properties which make them potentially useful in catalysis, sensing, medical and biomedical applications (Salari et al. 2017; Din et al. 2018; Shahsavar et al. 2019). MgO-NPs are generally utilized in the medical field because of its resistive, biocompatible and highly stable nature. Coelho et al. (2019) synthesized MgO-NPs-based hydroxyapatite granules and utilized it as the point of use technology for studying dental infections. They observed that the addition of the nanomaterials improves the antibacterial potential of the composite and hinders the production of biofilm. Sushma et al. (2016) synthesized MgO-NPs by utilizing Clitoria ternatea extract and reported enhanced antioxidant potential for the engineered system. Suresh et al. (2018) documented excellent potential for the antibacterial and anticancer activity of MgO-NPs synthesized using the leaf extract of insulin plant.

Apart from the biomedical applications, this particular metal oxide has also been known to exhibit enhanced photocatalytic applications. Degradation studies of numerous dyes including methylene blue (MB) (Aziz and Karim 2019), congo red (Karthik et al. 2019), methyl orange (Dobrucka 2018), etc. have been effectively carried out using MgO-NPs as a photocatalytic system. Bandgap (Eg) values (i.e., the energy difference between the valence and conduction band) provide essential information regarding photocatalytic potential of the engineered nanosystem (Shtarev et al. 2019). This is attributed to the fact that the photocatalytic activity depends on the available electron–hole pair (e/h+) that interact with the molecules present in the medium to carry out photocatalysis (Tahir et al. 2020) and the e/h+ formation as well as recombination reactions is dependent on the Eg values. The detailed calculations of the Eg values can provide insights into the photocatalytic activity of the nanomaterials. As Eg values are also indicative of the size of the NPs, the biological activities that are influenced by the size of the NPs can also be estimated by using these values (Anbuvannan et al. 2019). Literature survey indicates that most of the case studies reporting Eg values document it as a necessary property for the photocatalytic potential after the engineering of the NPs. The synthesis methodologies are not optimized with respect to this property (Anbuvannan et al. 2019; Ashraf et al. 2019; Shkir et al. 2019). Therefore, detailed studies that explore the synthesis methodologies with the focus on Eg values should be carried out for developing a better understanding of the effect of the synthetic parameters on the applicability potential of the nanomaterials.

Keeping the discussed considerations in mind, this study is designed to engineer MgO-NPs by using the biochemical approach The Dalbergia sissoo (D. sissoo; common name: Sheesham) is an indigenous plant which is famous in Pakistan owing to its ethnomedicinal values (Ali et al. 2019). This common plant has been known to possess numerous phytochemicals that exhibit analgesic, antipyretic, anticancer, antibacterial and osteogenic potentials (Awais et al. 2018). Our research studies on D. sissoo also confirm that the metabolites present in D. sissoo possess antifungal and antioxidant properties (Munir et al. 2015). The phytochemical profiling of the ethanolic extract of the D. sissoo revealed that the extract possesses several biomolecules including sissooic acid, quercetin-3-O-rutinoside, kaempferol-3-O-rutinoside, dalsissoside, iochanin A, etc. that can be utilized as a stabilizing and reducing agent for carrying out the production of the nanomaterials. Furthermore, in vitro mutagenic and cytotoxicity profiling also evidenced it to be non-mutagenic and non-toxic, respectively (Majeed et al. 2019), which aligns perfectly with the basic rules of green chemistry. Therefore, D. sissoo extract was considered as a reductant and stabilizing medium for the production of MgO-NPs in this study.

This research was designed to address the various drawbacks of the conventional approaches used for the production of nanomaterials. Instead of using harmful supporting mediums and reducing agents, the natural extract of D. sissoo leaves was utilized for this purpose. Furthermore, the usage of organic solvents for the metabolite extraction was also avoided and an aqueous extract under appropriate laboratory conditions was prepared for carrying out the synthesis of MgO-NPs. Single-step and one-pot synthesis of the MgO-NPs was effectively carried out using D. sissoo extract. The reaction was further optimized by using the Eg values, and the sample of MgO-NPs with the most appropriate Eg value was further characterized using various analytical techniques. To the best of our knowledge, the reported synthetic methodology (by using Dalbergia sissoo) for MgO-NPs has not been documented in the academic literature. Furthermore, optimization of the synthesis process with respect to Eg values is also a novel approach that has not been explored in the case of biogenic synthesis of the nanomaterials. This approach of using the Eg value as the deciding factor for optimizing the synthetic route will help in bridging the gap between conventional and biogenic synthesis. Moreover, essential insights into the potential of the synthesized NPs for various applications can also be estimated beforehand by using this methodology.

Materials and methods

Materials

Chemicals including magnesium nitrate hexahydrate (Mg(NO3)2·6H2O; 99.9%) and MB (C16H18ClN3xH2O; ≥ 82%) were acquired from Sigma-Aldrich. For experimental work, double-distilled de-ionized water was utilized. Fresh leaves of D. sissoo were acquired from the local botanical area at the University of Gujrat, Pakistan. The specimen sample was further deposited, recognized and authenticated by the Department of Botany, University of Gujrat, Pakistan, as the plant species of D. sissoo. All the reagents utilized during the experimental process were of analytical grade.

Synthesis of D. sissoo extract

The green extract was synthesized by using double-distilled de-ionized water as the extracting medium. Collected leaves were washed well with water to remove any dust particles attached to the raw sample. The biomaterial was placed under sunlight in dust-free conditions for 4 days. The dried leaves were ground into fine particles using an electrical grinder (Phillips) and the acquired powder was screened through standard stainless steel 60-mesh strainer for ensuring the homogeneity in size of the ground particles. Airtight plastic bags were utilized for the storage of the sample. 5 g of the prepared sample was weighed and added into the container containing 200 mL of water. The reaction container was placed on an electrical hot plate and was further provided with accessories including a magnetic stirrer and thermometer. The temperature of the system was maintained at 80 °C for 4 h with continuous stirring. The mixture was then filtered to remove the solid residue and the extract was poured into airtight sample bottles. The sample bottles were placed in a freezer for storage purposes.

Synthesis of MgO-NPs

In a typical synthesis, 20 mL of D. sissoo extract and 5 mL of water were taken in a titration flask and the solution was heated up to 80 °C for efficient extraction. The reaction mixture was then allowed to cool down to 30 °C and 0.1 M solution of Mg (NO3)2·6H2O was dropwise added into the reaction assembly. The reaction was allowed to proceed for 4 h. The acquired white precipitates were filtered, washed and dried in an oven for 2 h to get the MgO-NPs. The prepared NPs were stored in an airtight sample bottle. The synthesis methodology was optimized to get better results. The effect of extract concentration on the formation of MgO-NPs was studied by varying the precursor salt to extract concentration ratio from 30:10 to 30:30, while other reaction parameters such as the precursor salt concentration (0.1 M), temperature (30 ± 2 °C) and the pH (3.2 units) were kept constant at that time. Similarly, the effect of precursor salt concentration (at the varying concentrations of 0.001, 0.01, 0.1, 1, and 2 M), pH (at the varying values of 3.2, 6.2, 7.2, and 9.2 units) and temperature (at the varying values of 30, 40, 50, 60, and 70 °C) on the Eg values of MgO-NPs was also studied for optimizing the synthesis methodology.

Characterization

Double beam LAMBDA-3500 UV–visible spectrophotometer (PerkinElmer) was utilized for the primary characterization of the synthesized MgO-NPs. The X-ray diffraction (XRD) was carried out by utilizing D8-Advance diffractometer (Bruker Corporation, USA) working at the optimized conditions of 30 kV, 20 mA and Cu Kα radiations (wavelength = 1.54A°). Scanning electron microscopy (SEM) coupled with energy-dispersive X-ray spectroscopy (EDX) (LYRA3 TESCAN operating at 15 kV) was used for acquiring the micrographs of the synthesized MgO-NPs.

Photocatalytic potential of MgO-NPs

The photocatalytic potential of the synthesized MgO-NPs was investigated by carrying out the degradation of MB under ultraviolet (UV) lamp (10 W with 30mW/cm2). Before carrying out any photocatalytic experiment, the solution containing 100 mL of 20 ppm MB solution and 10 mg of MgO-NPs was subjected to constant stirring for 40 min to ensure the development of the absorption/desorption equilibrium. Apart from carrying out the reaction under the influence of the UV radiations, similar reactions were carried out under the dark and in the presence of sunlight for comparative analysis. The temperature of 20 ± 4 °C was maintained throughout the experiment. 5 mL of the suspension was removed from the medium after regular intervals and centrifuged for 5 min at 3000 rpm to remove the NPs from the solution. The separated solution was used for the ultraviolet–visible (UV–Vis) spectral analysis for estimating the concentration of the dye in the reaction medium. Equation 1 was utilized for studying the percentage degradation (%D) of the MB under the specified conditions.

$$\% D = \frac{{C_{0} - C_{t} }}{{C_{0} }} \times 100 ,$$
(1)

where \(C_{0} - C_{t}\) represents the difference between the initial and final concentration of the MB at its maximum wavelength, while \(C_{0}\) shows the amount of the initial MB dye present before the start of the reaction.

Antibacterial potential of the MgO-NPs

The antibacterial potential of the MgO-NPs was investigated against the strains of Escherichia coli (E. coli) and Ralstonia solanacearum (R. solanacearum) by utilizing the disc diffusion methodology. Strains of these plant pathogenic species were cultured on the lysogenic nutrient medium poured into Petri dishes at the temperature of 35 °C. The bacterial strains were allowed to grow until sufficient bacterial growth (1.59376 CFU/mL) was acquired. The poured agar solidifies on cooling and the acquired culture was separately charged with 1, 2 and 3 mg/mL of MgO-NPs for investigating the effect of concentration of MgO-NPs on bacterial growth. The cultures were incubated at the temperature of 37 °C at Medicinal Flora Evaluation Characterization and Metabolomics Lab, Department of Botany, University of Gujrat, Pakistan. Kanamycin was utilized as a positive control drug. After 24 h, zones of inhibition (ZI) were measured. Each experiment was replicated three times.

Results and discussion

Synthesis methodology

The synthesis of MgO-NPs was carried out using D. sissoo extract (scheme presented in Fig. 1). Certain metabolites including dalsissoside, quercetin-3-O-rutinoside, biochanin A, kaempferol-3-O-rutinoside, sissooic acid, etc. are reported to be present in the aqueous extract of the D. sissoo leaves. Further information regarding the biomolecules present in the extract is provided in the supplementary information. The preliminary confirmation of the formation of the MgO-NPs was acquired by the decrease in the color intensity of the extract. This is ascribed to the fact that the phytochemicals of the plant extract get degraded when carrying out the reduction and stabilization processes for the formation of NPs. Apart from the color transition of the extract (from the dark green to pale white), the appearance of characteristic absorption band affiliated with the MgO-NPs at 268 nm further confirms the formation of the NPs via the utilized green route (as indicated in Fig. 2). Information regarding the shape of the nanostructures is also acquired from the number of peaks present in the UV–Vis spectrum. The appearance of a single peak in the MgO-NPs spectrum suggests that the prepared NPs were iso-morphological (Jeevanandam et al. 2017). The reported spectral range for the characteristic band of MgO-NPs generated owing to the property of surface plasmonic resonance of nanomaterial was documented to be between 258 and 280 nm (Essien et al. 2020). All the synthetic reactions (documented below) that are carried out for the optimization of the synthesis methodology of the MgO-NPs (indicated in Figs. 2, 3, 4, 5) exhibited the characteristic band in the prescribed reported range for MgO-NPs.

Fig. 1
figure 1

Schematic representation of synthesis of MgO-NPs sing D. sissoo leaf extract

Fig. 2
figure 2

a UV–Vis spectrum for MgO-NPs prepared at different pH values and b Tauc plot for MgO-NPs at pH 3.2

Fig. 3
figure 3

a UV–Vis spectrum for MgO-NPs prepared at different extract concentrations; Tauc plot for MgO-NPs prepared at precursor: extract concentration of b 30:15; c 30:20; d 30:25 and e 30:30

Fig. 4
figure 4

a UV–Vis spectrum for the MgO-NPs prepared at different concentrations of precursor salt; Tauc plot for MgO-NPs prepared at precursor concentration of b 0.001 M; c 0.01 M; d 0.1 M and e 1 M

Fig. 5
figure 5

a UV–Vis spectrum for the MgO-NPs prepared at different temperatures; Tauc plot for MgO-NPs prepared at b 30 °C; c 40 °C and d 60 °C

Optimization of the methodology

Effect of pH

The reaction methodology was first optimized for estimating the specific pH value required for carrying out the formation of the MgO-NPs. The results acquired from the UV–Vis spectral analysis of the synthesis reaction carried out at different pH values (3.2, 5.2, 7.2, and 9.2) indicated that the pH value of 3.2 is essential for the formation of MgO-NPs. High values of pH inhibit the formation of the small-sized MgO-NPs. This observation is attributed to the fact that the variation in pH values directly affects the nature of charge present at the metabolite species of the extract. This change in the nature of charge affects the binding and reducing capability of the phytochemicals (Ahmed et al. 2016). At low pH values, the active form of the phytochemicals demonstrated the capability to reduce the precursor metal salt, which is in agreement with the nature of the metabolites present in the D. sissoo extract. As the metabolites belong to the polyphenolic and flavonoid class, the acidic nature of these compounds was quenched in the basic environment owing to neutralization and hydrolytic reactions. Thus, the greater concentration of the hydroxyl ions in the medium electrostatically favored the aggregation over the reduction processes, leading to the inability of the metabolites to form NPs at higher pH values (Ahmed et al. 2016; Polyakova et al. 2017).

The presence of the characteristics absorption band of MgO-NPs at the wavelength of 268 nm is shown in Fig. 2a. The UV–Vis spectrum of the MgO-NPs was further utilized to calculate the Eg values (eV) of the synthesized nanostructures by utilizing the following empirical formula:

$$\left( {\alpha hv} \right)^{2} = \left( {hv - E_{{\text{g}}} } \right),$$
(2)

where \(hv\) represents the optical energy, while \(\alpha\) represents the absorptivity coefficient of the material (Cheng et al. 2017). The calculated Eg value of 4.938 eV is significant, as this value indicates that MgO-NPs lie within the working range of UV (Kadham et al. 2018). Since the Eg value of the MgO-NPs is greater than 3 eV, these NPs are characterized as wide range NPs. The efficiency of MgO-NPs should be improved by lowering the Eg values. The lowered Eg value will make MgO-NPs more effective in utilizing the broader spectrum of electromagnetic radiations in addition to UV radiations for the light-mediated activation of NPs during photocatalysis. Furthermore, the formation of e/h+ will be facilitated by the lowering of the Eg values, which would improve the photocatalytic potential of the synthesized system. However, a very small Eg value will also facilitate the recombination reactions of e/h+ which will lower the concentration of available e/h+ for photocatalytic purposes (Chaudhary et al. 2016). Therefore, the optimized conditions of this synthetic reaction must include those reaction conditions that would facilitate the appropriate lowering of Eg in the case of MgO-NPs. The optimized pH for the synthesis of MgO-NPs by using D. sissoo extract was found to be 3.2, as MgO-NPs were not formed at any other pH values.

Effect of extract concentration

The effect of the extract concentration was investigated by varying the ratios of precursor salt to extract volume while keeping all other parameters constant (temperature 30 ± 2 °C, pH 3.2 and precursor salt 0.1 M) as presented in Fig. 3a. Among the prepared samples, samples with the volume ratio of 30:15 and 30:20 exhibited the surface plasmonic resonance peak of the MgO-NPs signifying the effective preparation of MgO-NPs in the medium. The characteristic peak was shifted to higher wavelengths with the increase in the amount of the extract in the reaction medium (i.e., precursor to extract volume ratios of 30:25 and 30:30). At a lower concentration of extract, no peak was observed in the spectrum of MgO-NPs. Results indicated that a moderate amount of the extract was found to be essential for the effective synthesis of MgO-NPs. The small-sized and uniform NPs were formed by utilizing the moderate extract ratios, as a suitable amount of phytochemicals was present in the reaction medium to assist the preparation and stabilization procedure of MgO-NPs. At a lower concentration of extract, few MgO-NPs were formed because the reducing species (phytochemicals from the plant) were not present in an appreciable amount in the reaction medium to carry out synthesis at a suitable rate. However, very small-sized MgO-NPs in large amounts were produced when the amount of extract/phytochemicals in the reaction medium was increased to a considerable level. These small-sized nanostructures owing to their higher instability aggregated to give large-sized MgO-NPs, which are not preferential for the photocatalytic and antimicrobial potentials of the NPs. The presence of the large-sized NPs was further confirmed by the observed color change of the reaction medium. The medium turned from a white solution to a turbid suspension with an increase in the concentration of the extract in the reaction medium (Reda et al. 2019).

The study of the Eg values affiliated with the performed experiments revealed that the increment in extract concentration (from 15 to 30 in the precursor to extract ratios) generated the decrease in the Eg values (from 4.2081 to 3.5600 eV) as indicated in Fig. 3b–e. This observation can be attributed to the following factors associated with the MgO-NPs: the small size of the MgO-NPs was responsible for the presence of numerous oxygen vacancies in the oxide nanostructures; these vacancies provided additional energy levels for the e/h+ transitions and lowered the Eg of the small-sized nanostructures. Similar results were documented by Robles et al. (2019) for zinc oxide NPs. The presence of a large amount of carbon in the reaction medium owing to the phytochemicals also contributed toward decreasing the Eg of the nanostructures (Sadeghi and Dorranian 2016). As the goal of this synthesis is to engineer the nanostructures possessing enhanced photocatalytic potential, the MgO-NPs with 30:20 ratio were considered for further characterization, as the Eg value of these MgO-NPs was found to be 4.1758 eV which was moderate enough for the excitation procedures (e/h+ formation) as well as also suitable for avoiding the e/h+ recombination processes.

Effect of precursor concentration

The effect of precursor concentration was investigated by varying the concentration of Mg(NO3)2·6H2O from 0.001 to 2 M while keeping other variables constant. Four out of five samples exhibited the characteristic absorption peak of the MgO-NPs at a wavelength of 268 nm. Figure 4a indicates that the concentration range from 0.001 to 1 M was effective for the synthesis of the MgO-NPs. Utilization of the salt more than this critical concentration (i.e., the concentration at which the reaction rate has become maximum and after this concentration, the reaction rate becomes independent of the understudy concentration factor) is not suggested, as any further increment in the concentration of the salt in the medium inhibits the synthesis of the MgO-NPs. Critical concentration is an industrially useful parameter because it provides an economic workable value of the particular reactant for the synthesis reaction. Furthermore, the reactant with the critical concentration can act as a limiting substance during the chemical synthesis under a particular set of conditions. Application of the critical concentration will not only provide the maximum rate for synthesis, but will also prevent the wastage of the chemical as further addition of salt is not influencing the reaction positively. The critical concentration for the precursor salt for the synthesis of MgO-NPs was found to be 1 M. Besides the acquired information from the UV–Vis spectrum regarding the synthesis of the MgO-NPs (by the appearance of the characteristic band), the absorption value can also be used to carry out the quantitative analysis. The absorbance of the peak is directly proportional to the concentration of the absorbing species in the medium. Since the absorbance at 258 nm acquired by the utilization of the 1 M salt is the maximum, the maximum yield of MgO-NPs was acquired in this reaction in comparison to other concentration values of salt (Chunfa et al. 2018). An exceedingly high concentration of the salt (2 M) was also found undesirable, as the MgO-NPs were not synthesized under this condition. This was attributed to the fact that phytochemicals in the extract were unable to completely reduce the huge number of precursor molecules present in the reaction medium. Furthermore, the reduced nanostructures generated were agglomerated on the unreacted salt molecules present in the reaction medium for achieving surface stability. This led to the formation of very large-sized clusters in the reaction medium, making this reaction condition unsuitable for the synthesis of the MgO-NPs.

Evaluation of the samples revealed that the Eg values calculated by using Tauc plots containing 0.001, 0.01, 0.1 and 1 M salt concentration were found to be 5.0678, 4.7680, 4.1804 and 4.9780 eV, respectively, as presented in Fig. 4b–e. This provided significant insights regarding the state of the MgO-NPs in the reaction medium. At first, the increase in the concentration of the precursor salt (from 0.001 to 0.1 M) resulted in a reduction in the Eg values (from 5.0678 to 4.1804 eV), which is to be expected, as at lower concentrations of the salt, reduction by phytochemicals was quite low because there was a very small amount of salt molecules present in the reaction medium for forming MgO-NPs. This observation was also validated by the low value of absorption intensity observed for the 0.001 M concentration of precursor salt at the characteristic wavelength of the MgO-NPs (consult Fig. 4a). But as the concentration of the salt is increased to the appropriate value, the number of small-sized MgO-NPs present in the reaction medium also increased. This change in the reaction medium was indicated by the reduction in the Eg values of the samples (Robles et al. 2019). As indicated by Fig. 4a, the maximum yield of MgO-NPs was acquired by utilizing the 1 M concentration of the precursor salt (as it possessed the highest absorbance value at 268 nm), but the Eg value of this sample was found to be greater than that of other samples (i.e., 0.01 M and 0.1 M sample). This revealed that the small-sized MgO NPs produced in large amounts got agglomerated to increase the size of the synthesized NPs as indicated by an increase in the Eg value. Thus, the optimized salt concentration for the synthesis of the MgO-NPs was found to be 0.1 M, as an appropriate Eg value of 4.1804 eV was observed for this concentration which is essentially useful for the specified applications of the engineered nanostructures (Reda et al. 2019). The acquired yield of the MgO-NPs will be second highest for 0.1 M concentration, but the prepared MgO-NPs will have appropriate Eg values for carrying out the photocatalytic applications with higher efficacy.

Effect of temperature

The synthesis of the MgO-NPs can further be optimized by varying the reaction temperature of the medium from 30 to 70 °C while keeping all other reaction variables constant. The spectral analysis of the synthesis reaction carried out at numerous temperatures is presented in Fig. 5a. Similar to the factor of pH, the temperature variation directly influenced the reaction constituents of the medium (Giwa et al. 2020). The production of the MgO-NPs by using phytochemicals depended upon the thermal stability of the phytochemicals. If the optimum temperature was not applied during the synthesis, the phytochemicals would break down and would not carry out the process of the reduction and stabilization of the nanostructures (Kumar et al. 2017). Among the performed experiments, only three temperature values including 30, 40 and 50 °C led to the generation of the MgO-NPs as indicated by the appearance of the characteristic absorption peak at 260 nm. Maximum absorbance was observed at the temperature value of 30 °C. Moderate and low absorbance was observed in the case of temperature values of 40 °C and 50 °C respectively.

The Eg values calculated by using Tauc plots for the temperature values including 30, 40 and 50 °C were found to be 4.1304, 4.9780 and 5.2468 eV, respectively, as shown in Fig. 5b–d. The temperature of 30 °C was considered optimum, as the appropriate Eg value was observed in this case. Furthermore, the yield as indicated by the absorption values was also found to be the maximum for 30 °C. High-temperature conditions not only destabilized the phytochemicals, but also increased the collision frequency of the NPs among themselves, leading to the aggregation of the nanostructures. This was evident from the fact that the MgO-NPs prepared at higher temperature values possessed high values of Eg. At extremely high-temperature values (60 °C and 70 °C), the synthesis of MgO-NPs was completely inhibited by the aggregation phenomenon as revealed by the absence of the characteristic absorption peak of MgO-NPs in the UV–Vis spectrum.

Characterization

XRD analysis carried out for the MgO-NPs is provided in Fig. 6. The MgO-NPs were found to exhibit the solid crystal phase, as evident by the indexing of the diffraction peaks in the XRD data. The acquired diffraction peaks at 2θ values of 36.5°, 42.2°, 62.2°, 75.8° and 78.5° corresponded to the hkl values of (111), (200), (220), (311) and (222). which were indicative of the cubic structure of MgO-NPs (JCPDS No. 01-089-7746 and JCPDS No. 01-079-0612). Absence of any additional peak other than the characteristics diffraction peaks of MgO-NPs also affirmed that there was no unreacted reactant present in the sample and the engineered sample also does not contain any other impurity incorporated into its crystal structure. The XRD pattern was further utilized to estimate the crystalline size of the engineered nanoparticles by using the Debye–Scherrer formula (Ghosh et al. 2019) at full width half maximum (FWHM) of the most intense peak at 2θ value of 42.2°. The average size of MgO-NPs prepared under the optimized reaction parameters (i.e., precursor salt to extract ratio of 30:20, pH 3.2, temperature 30 ± 2 °C and 0.1 M precursor salt concentration) was found to be 42 nm.

Fig. 6
figure 6

XRD analysis of MgO-NPs

The SEM micrograph along with EDX analysis of the engineered MgO-NPs prepared under the optimized conditions with the size scale of 0.5 µm (500 nm) is presented in Fig. 7a. The spherical morphology was seen in the topical view of the nanostructures with the average size being below 50 nm. This observation further validated the estimation of the size carried out by the XRD analysis. Agglomeration was also observed at some places as indicated by few large clusters present at the bottom of the SEM micrograph, but it is attributed to the adopted synthetic route and biological incapacitation capabilities of the phytochemicals present in the plant extract. The EDX analysis, presented in Fig. 7b, also confirmed the formation of the MgO-NPs by providing the characteristic peaks for the magnesium and oxygen in the spectrum. The percent weight of the magnesium and oxygen in the MgO-NPs was found to be 37.7% and 62.23%, respectively. The absence of any other peak in the spectrum further suggested that the engineered nanostructures were pure and do not contain any other impurity.

Fig. 7
figure 7

a SEM micrograph of MgO-NPs and b EDX analysis of MgO-NPs

Photocatalytic degradation of MB

The photocatalytic efficacy of engineered MgO-NPs was investigated by carrying out the degradation of MB as shown in Table 1. The information regarding the Eg value provided essential insights into the photocatalytic potential of the MgO-NPs. The maximum degradation efficacy of 81% was observed for the MgO-NPs having Eg value of 4.1758 eV prepared at the reaction conditions including temperature 30 ± 2 °C, pH 3.2, precursor salt 0.1 M and salt:extract volume ratio of 30:20. However, other MgO-NPs samples also exhibited an appreciable degradation efficacy against MB. An increase in the Eg values as observed in the samples (S-5 to S-9) lowered the degradation efficacy of the MgO-NPs, as more energy was required for the activation of the nanocatalyst via generation of the e/h+ pair (Ansari and Cho 2016). Furthermore, extremely lower Eg values observed in the samples (S-3 and S-4) facilitated the e/h+ pair recombination reactions which decreased the photocatalytic efficacy of the MgO-NPs (Bär et al. 2018). Therefore, the appropriate Eg value as observed in the sample S-2 (where Eg was suitable enough for the activation of the NPs by the electromagnetic radiations and wide enough to avoid the recombination reactions) was required for estimating the photocatalytic efficacy of MgO-NPs. In this study, this appropriate Eg value was found to be 4.1 eV against the dye of MB as indicated in Fig. 8.

Table 1 Degradation reactions carried out for MB using different MgO-NPs samples
Fig. 8
figure 8

Photocatalytic degradation of MB using different MgO-NPs samples

Figure 9a provides the UV–Vis spectrum of the MB degradation process carried out using the MgO-NPs prepared at the optimized conditions (S-2). At the start of the experiment, the MB exhibited the characteristic absorption band at 664 nm and less pronounced shoulder band at 615 nm. The absorption values observed for a peak at the 664 nm at any particular time was indicative of the concentration of the MB in the reaction container at that particular time. With the addition of the nanocatalyst, the photocatalysis started and the concentration of MB in the reaction medium started decreasing. Consequently, the absorption values for the characteristic band also decreased with time. After the passage of 250 min, 81% of MB was degraded into its products. The comparative analysis regarding the degradation process under different operating conditions is provided in Fig. 9b. It was observed that in the absence of any catalyst, 16% of the MB was degraded in 250 min. 25%, 58%, and 81% degradation was observed in case of the presence of MgO-NPs in dark, in the presence of sunlight and under UV-lamp (10 W), respectively. The reaction rate constants recorded by using the linear regression analysis were found to be 0.00096 min−1, 0.00103 min−1, 0.00308 min−1 and 0.00599 min−1 for the reactions performed without any catalyst, MgO-NPs in dark, MgO-NPs in the presence of sunlight and MgO-NPs in the presence of UV-lamp, respectively. The degradation rate constants indicated that the presence of MgO-NPs along with the UV-lamp was essential for achieving the maximum degradation efficacy, but appreciable degradation was achieved by simply carrying out the degradation reaction under sunlight.

Fig. 9
figure 9

a UV–Vis spectral analysis of the degradation of MB using the MgO-NPs (S-2) and b rate constant evaluation by linear regression analysis for the degradation of MB under numerous conditions

Antimicrobial potential of MgO-NPs

The antibacterial potential of MgO-NPs was investigated using the bacterial strains of E. coli and R. solanacearum as indicated in Table 2. The ZI (the region where the bacterial growth was inhibited owing to the presence of the MgO-NPs) was recorded for numerous samples of MgO-NPs prepared under different conditions. The sample of MgO-NPs produced at the optimized conditions exhibited good results against the strain of E. coli. Increment in the concentration of the MgO-NPs positively affected the antimicrobial potential and increased the value of ZI (Ibrahem et al. 2017). However, moderate activity was observed against the strain of R. solanacearum. Eg also provided insight regarding the antibacterial potential as the MgO-NPs samples. The MgO-NPs with the lowest Eg values (smallest size) provided the best results against the strain of E. coli (consult supplementary information). The processes of lipid peroxidation and generation of reactive oxidative species in the container were responsible for the antibacterial potential of MgO-NPs (Umaralikhan and Jaffar 2018).

Table 2 Inhibition zone values for MgO-NPs against microbes at different concentrations

Comparison with the academic literature

Comparative analysis of the findings with the recent academic literature further affirms that the biogenic synthetic route used for the MgO-NPs has numerous advantages over the conventional routes. Rukh et al. (2019) carried out the multi-stepped synthesis of the MgO-NPs by using the hydrothermal methodology. The preparation method required extreme conditions including heating at 220 °C for 48 h and 120 °C for 24 h for effective synthesis of MgO-NPs. Furthermore, hydrogen peroxide which is a noxious reagent was also used as a starting material during the synthesis. Similarly, Fakhri-Mirzanagh et al. (2020) reported a temperature of 550 °C for the synthesis of MgO-NPs by using oleic acid as a capping agent. Our research utilizes the natural extract of D. sissoo for carrying out the production of MgO-NPs in almost 8 h with the maximum temperature requirement of 80 °C which indicates the economical and green nature of this synthetic methodology. Furthermore, optimization of the synthetic route with respect to Eg values allowed the synthesis of MgO-NPs with the Eg values ranging from 3.5660 to 5.2468 eV. The Eg values acquired by using this approach was found to be better in comparison to Eg values documented for the microwave (5.93 eV) and hydrothermal (5.85 eV) based synthesis of MgO-NPs (Karthik et al. 2019). The documented rate constant values for the photocatalytic degradation of MB using MgO-NPs were also found to be better than the findings of Aziz and Karim (2019). The antibacterial potential of the MgO-NPs against E. coli was also found comparable with the silver/MgO nanocaomposites prepared by using Musa paradisiaca extract (Jayapriya et al. 2020).

Conclusion

In this study, MgO-NPs were prepared by using a leaf extract of D. sissoo as a reducing and stabilization medium. The synthesis methodology was optimized with respect to Eg values. UV–Vis spectral analysis confirmed the presence of the characteristic absorption band of MgO-NPs within the range of 258-268 nm for the samples prepared under varying conditions. XRD analysis revealed the cubic crystal structure for the MgO-NPs, while SEM analysis revealed the morphology of MgO-NPs to be spherical. EDX analysis indicated that the synthesized samples of MgO-NPs were pure. The MgO-NPs prepared under optimized condition having the Eg value of 4.1 eV exhibited maximum photocatalytic degradation efficiency of 81% against the MB dye. The samples with lower Eg values exhibited improved antibacterial potential against the bacterial strains of E. coli and R. solanacearum. The MgO-NPs prepared by using D. sissoo exhibited enhanced potential for multidimensional applications.