Introduction

Groundwater resources correspond to one of the most vital materials in the world and represent 97% of all liquid sweet water on a global scale (L’Vovich, 1974). It is an essential resource for diverse uses, especially for drinking, irrigation, and domestic purposes. It is critical to preserving natural balance, assuring access to water for human life, and fostering sustainable economic development (Liu et al., 2020; Gao et al., 2020; Rao et al., 2022a). Compared with surface water, groundwater provides several benefits, including good microbiological quality stability, less turbidity, widespread distribution, simplicity of use, and less vulnerability to contamination (Subba Rao, 2021). Furthermore, groundwater buffers change rainfall rates over time, effectively maintaining fluvial flows during dry and evaporative periods in surface water table areas.

In aquifers, the quality of recharged water depends on atmospheric precipitation, inland surface water, and subsurface geochemical processes that all affect groundwater quality. However, many papers recently have shown that a lot of diseases, such as dysentery, polio, cholera, typhoid, and diarrhea, are the result of the consumption of contaminated drinking water (Egbueri, 2018; Li & Wu, 2019; Mgbenu & Egbueri, 2019; Rao et al., 2022b).

Morocco is now one of the nation’s most vulnerable to the negative effects of climate change and water shortages (Dahan, 2017). Irrigation is responsible for the utilization of 90% of water; as a consequence, water resource management is a principal variable for the present and future of Morocco against climate change. Hence, the demand for groundwater is increasing in response to factors such as increased surface irrigation using groundwater pumping, urbanization, pollution, and climate change at a particular level of evaporation. Therefore, the development of groundwater resources in the last 50 years has increased; more than 2 billion people in the world depend on groundwater to drink (Murali & Elangovan, 2013). A succession of droughts occurred in this area. Indeed, the number of wells throughout the Draa Basin was estimated at only 205 in 1965 and has increased from 4200 in 1977 with the use of motor pumps to 10,000 in 2011 (Karmaoui et al., 2016).

In arid and semi-arid regions such as the city of Zagora, water is a commodity that is becoming more and scarcer, and people living there are hit by severe shortages. Surface water is scarcer. Indeed, since the construction of the Mansour Eddahbi dam in 1972, the natural environment of Drâa has changed absolutely. Subsequently, in the Drâa oases, particularly that of Fezouata (Fig. 1), groundwater salinization has become a limiting factor for cultivated development and long-term sustainability. Groundwater contaminations have a huge effect on the environment and create a risk to human health (Pattnaik & Reddy, 2010; Karmakar et al., 2021; Unigwe et al., 2022; Gugulothu et al., 2022). Nevertheless, the anthropogenic effects are originating from various anthropogenic sources such as fertilizer and industrial wastewater, and additionally the leaked sewage. Besides, natural causes are related to the nature of the soil, geochemical processes and seawater intrusion, temperature, weathering, precipitation, etc. (Chung et al., 2012; Tayfur et al., 2008; Shim et al., 2002).

Fig. 1
figure 1

Study area (w = wells)

Geographic Information Systems (GIS) provide a method of interpolation and are used to assess pollution levels and monitor groundwater properties to prepare spatial fluctuation maps (Egbueri et al., 2021; Ouzerbane et al., 2022; Thirumurthy et al., 2022; Ramirez et al., 2023; Bahrami & Zarei, 2023). In addition, the spatial analysis extension of GIS plays an important part in mapping the suitability associated with WQI and can be predicted groundwater quality (Dawood et al., 2022) and identify changes (Jumaah et al., 20212022; Moumane et al., 2021) generating models (Rabeiy et al., 2018; Karmaoui et al., 2022; El Moustaine et al., 2021; Egbueri & Agbasi, 2022a, b; Habbeb et al., 2022; Egbueri, 2022; Egbueri et al., 2022).

The water quality index (WQI) is considered to be a mathematical tool to significantly reduce water quality data based on some physicochemical parameters and provide a single classification value that describes the water quality status of water bodies or the degree of pollution (Ravindra et al., 2022). It is primarily proposed by Horton (1965) and later developed then developed by Brown et al. (1970), essentially in the majority of the papers on the water quality monitoring of all around the world (Singh & Noori, 2022; Laishram et al., 2022; El Moustaine et al., 2021; Abbasnia et al., 2019; Madhav et al., 2018; Bora & Goswami, 2017; Kaviarasan et al., 2016; Amiri et al., 2014; Pei-Yue et al., 2010; Ramakrishnaiah et al., 2009; Pradhan et al., 2001; Horton et al., 1965). The majority of authors are using the geospatial techniques for the spatial estimation of groundwater parameters. However, it can be used to define water quality for various purposes such as agricultural water supply, several water bodies, and navigation.

In the study area, groundwater understanding the only source for various purposes (irrigation, drinking water, and development). However, this area knows many pressures influencing groundwater quality and the environment, like the disposal of wastewater and exploitation of mining (Barite). Recently, our study area was the first at the national level to export watermelon and to date, no study about hydrogeochemical has been approved to assess the spatial distribution and evaluate the hydrochemistry of groundwater in the aquifer of Fezouata. The main objective of the current study is to investigate the quality of Fezouata water for drinking and irrigation purposes by using integrated tools (hydrochemical, multivariate statistical approaches, and the Water Quality Index) to evaluate water quality and also for rational management in arid areas.

Material and methods

Study area

The Draa basin extends to an area of 14,380 km2 and a width of 1200 km, traversed by Draa river, the longest river in Morocco with 1100 km in length. It is supplied by the Mansour Eddahbi dam above the middle Draa valley (MDV). The Drâa river valley is of great importance because of its cultural heritage and natural has been recognized as an UNESCO World Heritage Site and RAMSAR Site.

The Drâa River naturally collects the surface waters of the Atlas Mountains. These water resources have allowed the establishment of a chain of six oases which extend for 200 km in the upper part of the Wadi Draa, varying from 100 m to 10 km in width upstream to downstream (Mezquita, Tinzouline, Ternata, Fezouata, Ktaoua, and M’Hamid).

Zagora city situated in southern-east of Morocco with a surface of 23,000 km2, covering 3.55% of the total of the country. It is the last part of the aquifer of Tarnata and the upstream part of the aquifer of Fezouata, this region is marked by the ancient geological chain of Anti-atlas. The climate is dominated by a hyperaridity marked by low rainfall, a stormy character, and large daily and yearly fluctuations in temperatures. According to the 2014 census, the province is home to 305,510 inhabitants with a habitat density of 14 per km2 (Morocco Planning High Commission, 2014).

Fezouata area situated in the south-east of Morocco, in the central Anti-Atlas part (06° W meridian and below the 30° N), has been known by metal exploitation at least along 10 km. Since 2014, this activity would enhance changing the groundwater quality by oxidation of tailings by water and atmospheric oxygen allowed, in the absence of neutralizing agent’s effluents. As a result, water is acid and enriched by particular elements that can intensify the conductivity especially sulphate. The Zagora’s STEP (water treatment station) is installed upstream of the study area.

Sampling methods

The groundwater samples were collected for 2 years 2020 and 2021: in the wet season (December–April) and in the dry season (June–October) at each sampling station. Samples were preserved and analyzed according to Rodier et al. (2009). Water sampling every well was collected in 1000 ml polyethylene bottles and transported in a cooler at approximately 4 °C to the laboratory.

In this study, the pH, conductivity, and total dissolved solids (TDS) of the water were measured in situ with a multi-parameter probe HI 9829 (HANNA). The other physicochemical parameters such as nitrates (NO3) and SO42− were measured by spectrophotometer. The magnesium (Mg2+), calcium (Ca2+), sodium (Na+), and potassium(K+) were measured by flame spectrophotometer when the bicarbonate (HCO3) is obtained by the titrimetric method in the laboratory to evaluate the groundwater quality. In the Fezouata area, we collected fifteen groundwater samples by using a GPS device. The results are shown in Tables 2 and 4. Concerning water quality, we have used the criteria recommended by WHO in 2011.

Estimation of water quality index

WQI is adopted in order to recapitulate a large amount of water quality information into a single number and clear format (Štambuk-Giljanović, 1999) and its suitability for drinking purposes (Saeedi et al., 2010; Rao et al., 2021). Moreover, WQI is extensively used for evaluating groundwater quality for drinking water, in relation to the hydro-geological and chemical parameters as well as heavy metal contamination (Liu et al., 2020). In the present study, this method is used to assess the quality of groundwater based on 10 parameters. The recorded values of WQI were calculated by using the weighted arithmetic index method as described by Cude (2001). The number 5 as a maximum weight has been given to the parameters like TDS and nitrate in favor of their significant importance in water quality assessment (Srinivasamoorthy et al., 2008; HemaLatha et al., 2012), pH, and sulfate were assigned the weight 4 (Al-Mashagbah, 2015; Srinivasamoorthy, 2008; Ketata et al., 2012). Sodium and bicarbonate was given a weight 3. Concerning K+, Ca2+, and Mg2+ were given the weight of 2 as they had little impact on the water quality testing (Ketata et al., 2012; Rokbaniet al., 2011) (Table 3 and Table 5).

In the second step, the relative weight (Wi) of each parameter is estimated by following Eq. (1):

$$Wi=\frac{\mathrm{wi}}{\sum_{1}^{\mathrm{n}}\mathrm{wi}}$$
(1)

where wi is the weight of each parameter, n is the number of parameters, and wi is the relative weight. Weights (wi), calculated relative weight values (Wi), and WHO criteria for each parameter are shown in Table 2.

Water quality rating scale qi were calculated by the following formulae using Eq. (2).

$$qi=\frac{\mathrm{Ci}}{\mathrm{Si}}\times 100$$
(2)

where qi is the quality score, Ci is the concentration physicochemical parameter, and Si is the drinking water standard of each physicochemical parameter according to the 2011 WHO guidelines.

Next, to calculate the WQI value of each parameter, the water quality sub index (SIi) is calculated using Eq. (3).

$$SIi=\mathrm{Wiqi}$$
(3)

Finally, the water quality sub-index assists to compute the WQI using Eq. (4).

$$WQI=\sum_{1}^{n}SIi$$
(4)

These index values classify groundwater quality into five types, “excellent” water, and “unsuitable for consumption” as shown in Table 1 (Ramakrishnaiah et al., 2009).

Table 1 Water quality based on WQI value

Results and discussion

Physicochemical parameters

pH, electrical conductivity, and total dissolved solids

This study indicates that values of spatial fluctuation of the groundwater quality parameters in the Zagora area were recorded in samples of water from each well (Tables 2 and 4). pH is the strength of the alkalinity or acid of the aqueous solution; this parameter is an essential indicator that can be used to evaluate water quality and the level of pollution in water bodies, measured based on the − log of H + concentration (Trivedy & Goel, 1984). The pH values, varying from 4.28 to 6.91 in 2020 and 7.26 to 7.79 in 2021, show that the water of Fezouata is nearly neutral to relatively alkaline nature, with the lowest mean value of 4.28 observed at W9, while the highest values were recorded at W4 and W2, respectively (7.90–7.79). The pH results indicate the values are within the guidelines of the WHO and BIS except at one well W9 located close to Douar Bni khallouf; this last is located near septic tanks. Though pH values between 6.5 and 8.5 generally designate good water quality, it is characteristic of most watersheds around the world (UNEP/GEMS, 2007) (Table 3).

Table 2 The mean value of physicochemical parameters composition of groundwater in the aquifer of Fezouata (2020)
Table 3 The weight and relative weight used for calculated WQI in 2020 period (Al-Mashagbah, 2015; HemaLatha et al., 2012; Ketata et al., 2012; WHO, 2011)
Table 4 Mean value of physicochemical parameters in the study area during (2021)

The electrical conductivity values generally depend on the entire dissolved salts during measurement (Jubouri and Saeed, 2009). The values of electrical conductivity (EC) varied from 2003.50 to 8186.75 µS/cm in 2020 and 1879.83 to 7990.11µS/cm in 2021 (Tables 2 and 4), reflecting a high mineralization level in upstream to downbound, and indicating a salt enrichment in the study area (Prasanth et al., 2012). This fact is agreeing with results obtained by Cherkaoui et al. (2007) and Warner et al. (2013). All groundwaters samples values above the norm recommended by WHO 2011 (1000 µS/cm).

The total dissolved solids (TDS) determination of the components, salts, minerals, cations, and anions content in the water samples. The high value of TDS can reason stomach infection, and lengthy-time period of use can result in coronary heart ailment and kidney stones in human beings (Jain et al., 2003). the present study shows that TDS concentrations ranged from 964.50 to 5014.50 in 2020 with an average value of 2499 ± 1281 and 939.92 to 3996.83 mg/L in 2021 with an average value of 2339.84 ± 1144. Except for one sample all groundwater samples are above 1000 mg/L, classify 8 samples i-e 53.33% as useful for irrigation (TDS ranging from 1000 to 3000) and 6 as unfit for drinking and irrigation according (Davis & Dewiest, 1966). Higher TDS values in the study area are due to leaching of salts from soil, it means geological composition of soils (Table 5).

Table 5 The weight and relative weight of each chemical element in the 2021 period (Al-Mashagbah, 2015; HemaLatha et al., 2012; Ketata et al., 2012; WHO, 2011)

Major anions

Nitrate (NO3 )

The nitrate content in groundwater intended for human consumption is the most important parameter in water quality testing for the reason that its high values in drinking water have an impact on bottle-fed infants, for example, cyanosis (discoloration of the skin) and methemoglobinemia (Comly, 1945), goiter, hypertension, gastric cancer, and birth malformations (Majumdar and Gupta, 2000; Shigut et al., 2017). In the study area, all samples’ results show that values of the nitrate ranged from 1.22 to 107.02 mg/L with means value 16.84 ± 28.30 in 2020, but in 2021, the nitrate values ranging between 0.52 and 72.64 mg/L with an average value of 16.43 ± 25.18 mg/L. Relatively high values are recorded in W10 (107.02 mg/L) and W7 (44.07 mg/L) likely originating from anthropogenic sources, agricultural wastewater, and septic tank discharge (Barakat et al., 2018). NO3 concentration of all the groundwater samples does not exceed the permissible limit (50 mg/L) as per WHO (2011), except for W6, W7, and W10 where the values are well above the limit recommended by WHO; these results are given for the first time, especially after the installation of the STEP of Zagora the opposite of some Douar of the Tamegroute commune like Ait khadou, Inkizat, and Sarte.

Sulfate (SO4 2−)

Sulfate is some other essential chemical characteristic for water quality that is naturally present in water due to the leaching of gypsum and other common minerals (Sehar et al., 2011). It also influences taste and odor in drinking water (Bouslah et al., 2017). SO42− in aquifer systems generally originates from the weathering of the two main SO42− bearing rocks, pyrite and gypsum, and input from anthropogenic activities (Ziani et al., 2017). High SO42− levels in water may have a distinct flavor and may induce a laxative effect in accustomed consumers (WHO, 2017). The SO42− concentrations in analyzed samples ranged from 551.38 to 1281 with an average of 1006.72 ± 213.81 in 2020 and 440.84 to 1131.28 with an average of 820.99 ± 202.95. These results show that all groundwater in Fezouta area exceeded the permissible limit of 250 mg/L. These results indicate that the groundwater samples analyzed are rich in sulfates, which could pose serious health risks such as dehydration and diarrhea, and that children are more susceptible to sulfates than adults (Kumar & Dua, 2009). Alkalinity is a crucial parameter of the buffering capacity of water, in natural waters Bicarbonate depends on temperature, pH, cations, carbon dioxide, and dissolved salts, high values may cause gastrointestinal irritation and disease with vomiting and nausea in addition to their impact on health (Wynn et al., 2010).

Bicarbonate (HCO3 )

The alkalinity results were observed between 112.12 mg/L and 620.74 mg/L with an average of 345.41 ± 149.63 mg/L in 2020 and 143.93 to 462.47 in 2021 with means of 280.26 ± 99.88 mg/L; thus, values show that HCO3 exceeds the values permissible (500 mg/L) by WHO (2011), except W1 in 2020 and all groundwater samples in 2021. The quantity of calcium and magnesium determines the total hardness (TH) of water. Calcium is one of the important components necessary to our body, the last requires a healthy quantity of calcium, and a deficiency can lead to hypocalcemia, muscle cramps, dry skin, etc. (Pravina et al., 2013). The calcium values in groundwater range from 28.16 to 160.84 mg/L, with a mean value of 83.36 ± 38.04 mg/L in 2020, and varied between 51.95 and 227.99 mg/L with an average of 124.49 ± 56.80 mg/L. Forty percent of samples exceed the standards recommended (75 mg/L) by World Health Organization (2011) in 2020 (W5, W8, W9, W11, W12, and W13), However, 73.33% of samples are exceeding this limit value. This may be due to carbonate rocks. It may also be a chemical decomposition of feldspars and calcium plagioclase pyroxenes (Ganyaglo et al., 2010). Magnesium is present naturally in water. Hypomagnesemia, hypertension, osteoporosis, headaches, etc. can all result from a magnesium deficiency (Al Alawi et al., 2018; Watson et al., 2012). In the study area, magnesium in groundwater comes from dolomite breakdown, amphiboles, pyroxene, and olivine dark-colored micas. The Mg2+ concentration results range between 16.9 and 310 mg/L with an average of 95.22 ± 87.91 mg/L in 2020 and between 42.72 and 174.00 mg/L with a median value of 83.94 ± 39.36 mg/L in 2021. Of the samples, 46.6% are within an acceptable limit in 2020 and 80% in 2021 exceed the maximum allowable limit.

Chlorides Cl

Chlorides in groundwater can have a variety of sources, such as rock modification and sedimentary soil leaching, saline intrusion, household, and industrial waste discharges, etc. (Karanth, 1987). It is less than 30 mg/L, but in arid regions can reach 1000 mg/L (Nag, 2009). Chloride (Cl) concentrations ranged from 109.10 to 979.20 mg/L with a mean value of 382.67 ± 268.47 mg/L in 2020 and 56,00 to 867,00 mg/L with an average of 411.40 ± 283.65 mg/L in 2021. However, 60% of groundwater samples are below the recommended level (250 mg/L) in 2020. As well as, 66% of groundwater analyzed in 2021 exceeds the maximum allowable limit. The dissolution of halite is primarily responsible for the high amounts of chloride (Bahir et al., 2017). Sodium (Na+) is the most common member of the group of alkali metals in the investigated groundwater. The sodium concentration ranged from 138.36 to 821.49 mg/L, with an average of 456.44 ± 232.77 mg/L in 2020, and 217.88 to 957.98 mg/L, with an average of 562.51 ± 281.22 mg/L in 2021. 80% of samples exceed the value limit in 2020 and all samples are above the recommended limit in 2021 (200 mg/L).

Gibbs diagram

Gibbs diagram is extensively used to set up the reaction between the aquifer lithological characteristics and water composition (Gibbs, 1970). This method uses to estimate the origin of ions in groundwater by investigating the relationship between them. TDS and anions (Cl, HCO3) firstly and between TDS and cations (Na+, Ca2+) secondly. This diagram is classified into three classes precipitation dominance, rock dominance, and evaporation precipitation. According to the results shown in Fig. 2, the origin of anions and cations in the samples of groundwater in the aquifer of Fezouata has been obtained mainly from evaporation dominance due to the arid and semi-arid environmental climate in the Zagora region.

Fig. 2
figure 2

Gibbs diagram in the groundwater study

Water evaluation for irrigation purposes

The suitability of the aquifer Fezouata was investigated using irrigation water quality indices like soluble sodium percentage (SSP), sodium adsorption ratio (SAR), magnesium hazards (MHs), permeability index (PI), and Kelley’s ratio (KR) (Fig. 3). The resulting concentration (Table 6) percentages, number of groundwater samples are provided in Table 9, also the spatially varying maps shown in the Figs. 4 and 5.

Fig. 3
figure 3

Evaluation of WQI for the groundwater during 2020 and 2021

Table 6 Assessment groundwater results for irrigation purpose
Fig. 4
figure 4

Spatial distribution of WQI in the study area during 2020 (Boudellah et al., 2022)

Fig. 5
figure 5

Spatial distribution of WQI in the study area during 2021 (Boudellah et al., 2022)

SAR

The sodium absorption ratio (SAR) is the percentage of sodium content divided by the square root of half of the total concentration of calcium and magnesium, which is not equal to one degree of sodium relative to the amount of calcium and magnesium in a water sample. SAR indicates the suitability of water for use in agricultural irrigation. The high concentrations of sodium in water affect soil permeability and can lead to water infiltration problems, thereby causing negative effects due to changes in soil properties and reduced permeability. (Schwartz, 1990; Ben et al., 2014; Aravinthasamy et al., 2020). SAR may also cause temporary surface soil saturation, high pH and soil erosion, inadequate nutrient availability, and increased risk of plant disease reducing soil permeability and the soil’s ability to form stable aggregates, leading to loss of soil structure (Prasanth et al., 2012). The sodium absorption ratio was computed employing Eq. (5) (Raghunath, 1987). All concentration of cations was given in meq/L.

$$SAR=\frac{{{{Na}}}^{+}}{\left(\sqrt{{{{Ca}}}^{2+}+{{{Mg}}}^{2+}}\right)/2}$$
(5)

The SAR calculated value obtained of the groundwater of the Fezouata area varies between a maximum of 20.64 meq/L registered at W15 and a minimum of 3.24 meq/L recorded at W4 with a mean of 7.48 ± 5.05 in 2020. However, ratio of the sodium concentration varied from 5.42 meq/L at (W2) to 16.81 meq/L, with an average of 8.26 ± 3.88 in 2021. Of all samples, 52.24% are considered “excellent” and 32.16% of samples groundwater are “good” for agriculture. However, 15.11% are doubtful for irrigation in 2020.

A total of 11 (42.53%) analyzed the groundwater samples in the “excellent” and 57.47% of samples are in the “good” for irrigation in 2021.

SSP

Sodium percentage results from natural water, it is a critical parameter in categorizing irrigation water based on soil permeability. The SSP was designed using Eq. (6) (Todd, 1980): where the concentrations of cations are in meq/L.

$$SSP=\frac{{Na}^{+}+{K}^{+}}{\left({Ca}^{2+}+{Mg}^{2+}+{Na}^{+}{+K}^{+}\right)}\times 100$$
(6)

There are three categories are purposes: good, admissible, and doubtful receptively 20–40 Na%, 40–60 Na%, 60–80 Na% (Doneen, 1964).

The SSP value varied from 38.09 to 85.74%, with an average of 65.54 ± 14.13% in 2020 and ranged between 48.53 and 78.67%, with an average of 62.12 ± 7.86% in 2021. Witch suggested that 4.07% of groundwater samples are good, 31.25% are permissible, 50.82% are doubtful, and 17.94% are unsuitable for irrigation. However, in the 2021 period, 77.24% are doubtful and only 22.76 are permissible for irrigation. Thus, high values of sodium percentage can produce alkalinity and salinity in soils if associated with chloride and carbonate.

KR

Kelley’s ratio (KR) determined excessive sodium on calcium and magnesium; according to Kelley (1963), the KR should not exceed 1 for irrigation water. It can be estimated using Eq. (7):

$$KR=\frac{{{{Na}}}^{+}}{\left({Ca}^{2+}+{Mg}^{2+}\right)}$$
(7)

The KR values of all groundwater samples in the current study range from 0.6 to 5.97 meq/L, with an average of 1.85 ± 1.49 meq/L in 2020 and found between 0.91 to 3.65 meq/L, with an average of 1.62 ± 0.7 meq/L. Three (6.76%) samples were suitable, 93.24% were unsuitable for agriculture, and 64.64% were unsuitable for irrigation in 2020. However, only one (3.24%) of all samples is suitable for irrigation, 96.76% are unsuitable for irrigation in 2021.

PI

The contents of Ca2+, Na+, Mg2+, and HCO3 in the groundwater samples for agriculture purposes can affect the permeability of soil (Singh et al., 2015). The PI is classified into three classes: class I, class II, and class III. According to Nagarju et al. (2006), class I and II indicate good water quality for irrigation respectively (> 75%, 25–75%), while class III (up to 25% permeability) water is considerate unsuitable for agriculture. This index can be calculated by Eq. (8):

$$PI=\frac{{Na}^{+}+\sqrt{HCO3}}{\left({Ca}^{2+}+{Mg}^{2+}+{Na}^{+}\right)}\times 100$$
(8)

The PI values in the studied area range from 45.41 to 97.77, with an average value of 82.73 meq/L in 2020 and ranging from 60.85 to 86.84 meq/L, with a mean value of 76.89 ± 6.36.

Based on this classification, the majority of groundwater samples, among nine 67.79% samples were in class I, and 32.20% in class II, but eleven samples 75.92% in 2021 are categorized exceeds 75%. In addition, 30.18% of all samples are in class II. This result shows that the groundwater samples of the aquifer in Fezouata area are used for irrigation purposes.

MH

The water is suitable for irrigation if magnesium hazard values are lower than 50% (Szabolcs & Darab, 1964). In addition, HM higher than 50% can increase the pH of the soil and affects plant growth. MH value is estimated in meq/L as follows:

$$MH=\frac{{Mg}^{2+}}{\left({Ca}^{2+}+{Mg}^{2+}\right)}$$
(9)

The samples analyzed in this study have a maximum of 83.96 to 26.12, with a mean of 54.62 ± 19.19 meq/L, which indicated that only 15.44% of samples had MH values below 50% in 2020. Though, 26.79% are less than 50% in 2021. Consequently, the sampling analysis extended to permissible water, as a result of many factors like: geological contacts of groundwater, most irrigation pumping plants have excessive operating and groundwater dilution by releasing from dams of Mansour Dehbi, which explains the results obtained in 2021.

Correlation analysis

Statistical analysis is performed between different parameters, and the results are shown in Table 7. The high significant positive correlation is observed between electric conductivity and TDS (r = 0.96), with chloride (r = 0.75), with Na+ (r = 0.72), among sulfates and calcium (r = 0.74), a moderate correlation also was obtained between TDS with sulfates (r = 0.67), with Na+ (r = 0.698), too among chloride and sodium (r = 0.69), potassium and magnesium (r = 0.63). This suggests that all samples collected within the study area are of a similar geological nature. In addition, the elevated correlations of TDS and conductivity with sodium, chloride, and sulfates indicate that these levels are the major contributors to conductivity in the Fezouata aquifer.

Table 7 Correlation matrix of physicochemical parameters during 2020

Groundwater assessment for drinking using WQI

The water quality means values computations during the study period are shown in Table 8. The computed WQI values of sampling groundwater of Fezouata range from 34.42 to 106.43 with a mean value of 72.63 ± 25.58 during 2020 and range from 39.04 to 121.91, with an average of 74.57 ± 26.82 in 2021.

Table 8 Classification of water quality using WQI calculation

In comparison with WQI values in 2021 (Fig. 3), there are no significant changes between this concentration. However, a marked decrease in mineral contents in some wells situated in the distal area of mining exploitation, 40.24% of all samples is unsuitable for drinking during 2020 related to 33.21% in 2021. Therefore, this decline was caused by natural geological, the dilution of the aquifer (Lasagna et al., 2013) and pumping water for irrigation.

The maximum WQI has been calculated for the samples taken in the W13 closely to the mining Tinfou site (Table 8). They are followed by W12 and W15 with WQI of 103.79 and 102.39, respectively, taking in mind that they have been taken in upstream about 3 km from the mineral exploitation zone. Indeed, this increase is related firstly to the higher concentration of TDS occurring in the wells W12, W9, and W15 (with 5014.5, 4108, and 3264 mg/L, respectively), and secondly, the noticeable conductivity levels (with 8146, 7894.6, and 6730 µS/cm). This allows classifying these groundwater samples as unsuitable for drinking purposes at W12, W13, and W15 and as very poor water quality into four wells (W1, W8, W9, and W14) accounting for 47.55% of the total samples, 23.90% are considered poor water quality for potable water. Nevertheless, in the aquifer of Fezouata, the wells situated upstream of the source of pollution are relative of good quality and nearly all of the samples are in excellent quality or good quality water, representing 28.55%. Furthermore, 33% samples are unsuitable for drinking water in 2021, 38.94% are in poor quality, 43.58% are very poor, and 17.48% are good.

In the current study, the groundwater, for instance, located upstream of aquifer testing is typically less classified as loaded waters; the quality in this part is good for drinking with WQI generally below 50, except for W1. The WQI can help to assess and knowledge the degree of contamination in order to evaluate the spatial variation in addition to temporal variation. Downstream, the groundwater samples have WQI less than 100, and several of the wells in this region nearby to mining exploitation are unfit for drinking water (Boudellah et al, 2022), particularly W12 and W13, which could account for the high value seen in W1 and W15 in the western part of the aquifer of Fezouata.

Water quality is defined by a number of quality parameters depending on the purpose and different pollution kinds. That’s why this study is based on teen parameters such as TDS, pH, NO3, SO42−, HCO3, Cl, Na+, Mg2+, Ca2+, and K+. Even so, it is indispensable to complete deeply the assessment of the groundwater, to minimize the risk of alterations to water resource quality.

The geospatial techniques seem suitable and successful in groundwater studies. Our findings/results in the area of Zagora may remain a reference for coming studies in the monitoring of the water resource in this area and elsewhere to control the anthropic impact factor (Table 9).

Table 9 Assessment quality using irrigation indices (SAR = sodium adsorption ratio; SSP = soluble sodium percentage; PI = permeability index; KR = Kelley’s ratio; MH = magnesium hazard)

Conclusion

This study aims to evaluate groundwater quality in the Fezouata region using irrigation indices and WQI techniques. It is a suitable method of mapping groundwater distribution by using physicochemical parameters; the first aim is to characterize a good groundwater source for drinking purposes. Furthermore, it also presents a comparative assessment of the water quality of sampling stations in time and space. The abundance of major ions is SO42−  > Na+ > Cl > HCO3 > Mg2+ > Ca2+ > NO3 > K+ with Na+ among the cation being dominant and K+ being a minor element. While the sulfates are the most dominant anion and NO3 is the lowest. The physicochemical parameters like EC suggest a high mineralization of the samples’ groundwater. In fact, all samples exceed 1500µS/cm recommended for drinking. Concerning the sulfate and nitrate, all sampling sites exceeded the standards fixed by the WHO (2011) of 250 mg/L and 45 mg/L, respectively. The hydrogeochemical facies indicated that the nature of groundwater is Na-Cl type in the study area. The controlling factor that affects the chemical composition of groundwater in the aquifer of Fezouata was identified as evaporation dominance. The results of the WQI show that 17.48% to 28.55% are good and then recommended for drinking purposes, 23.90% to 38.94% are poor water quality, 43.58% to 47.55% are in very poor quality, and 33.21 to 40.24% are unsuitable for drinking purposes. The high value of WQI recorded in the downstream part of the study area is due to higher values of chloride, sulfate, sodium, and calcium. 

Regarding agriculture water, the irrigation indices like SAR, the majority of samples are good to excellent, 84% and 100% in 2021. While, the SSP, 22% of groundwater samples in 2020, and 35% are permissible for irrigation. Although, the permeability index shows that 67% is unsuitable for agriculture in 2020 and all samples are good to excellent. However, The KR and HM indices show that the vast majority of samples are unsuitable for irrigation, thus suggesting that groundwater samples located upstream of the study region are suitable for drinking and irrigation. Moreover, in some study wells, the geological nature of soil as groundwater flow through the soil is the origin of the level values recorded. In the southern part of the studied area mining exploitation is a factor controlling the chemical element in the aquifer in addition to irrigation water dumping. Therefore, our findings suggest that the groundwater quality in the Fezouata area is influenced by anthropogenic factors (septic tanks) and geochemical causes, such as higher SO42 and Ca2+ levels caused by gypsum and halite. In addition, education for people living in this arid climate is obligatory and urgent plans for management are necessary with this increased salinity to protect this scarce resource. As a perspective, the evaluation of groundwater quality in Fezouata should be more developed by using microbiological and metal parameters in WQI calculations and water quality monitoring.