1 Introduction

Global warming is a global phenomenon. This phenomenon generates long-term complex interactions between environmental factors and economic and social conditions leading to remarkable effects at the regional scale [1, 25], especially at the Mediterranean level [5, 14, 28].

In areas under a Saharan, arid, and semi-arid climate, the precipitation is the determining factor for climatic characterization. The study of their recent evolution and climate variability is emerging essential for finding solutions to the problems of water availability [5,6,7, 9, 33].

In the Maghreb countries, studies on climate change show that the global warming is more significant than the average observed on a global scale. In fact, on a global scale, the warming is estimated at 0.74 °C during the twentieth century, while it fluctuates between 1 and 2 °C on the Mediterranean and North African scales [17, 19, 28, 33]. As for precipitation, it decreases in the Mediterranean region, in the Sahel, in southern Africa, and in certain parts of South Asia at different temporal and spatial scales [1, 18].

Morocco, one of the countries under arid and semi-arid climate, remains one of the most vulnerable to the climate change effects. It is characterized by a spatio-temporal irregularity in precipitation, becoming weaker towards the south [35]. This country has suffered from several periods of drought [3, 4, 12]. Several studies of precipitation within Morocco have shown that the number of dry periods is greater than the number of wets periods, with a general downward trend of 23% [5, 12, 28, 30, 36]. As for the temperatures, they show an increasing trend with warming varying between 0.3 and 2.5 °C depending on the region [3, 28, 30].

However, this change in climate parameters caused by climate change is likely to have a negative effect on water resources, especially in areas under Saharan, arid, and semi-arid climate.

The Essaouira basin (Western Morocco) characterized by a semi-arid climate [27] is probably no exception to these effects. However, this investigation aims to evaluate the climate change impact on water resource within the basin by combining the climatic, piezometric, and hydrochemical techniques.

2 Study area

The Essaouira basin, the objective of this study, is part of the Atlantic Atlas, which is the westernmost part of the southwestern Moroccan basin [11, 13]. This basin is bounded to the north by Hadid anticline, to the south by Igrounzar and Tidzi wadis, to the east by the Bouabout region, and to the west by the Atlantic Ocean. It is subdivided into two parts, the first known as the “Bouabout unit” (upstream part) and the second known as the “coastal zone” (downstream part) (Fig. 1).

Fig. 1
figure 1

Location of study area

From a morphological point of view, the study area is made up of a set of synclinal basins filled with formations ranging from the Triassic to the Quaternary with elevations varying between 0 and 1600 m. Hydrographically, it is characterized by a less-developed network and this is represented by Ouazzi wadi in the north and Igrounzar wadi in the south for the upstream part and by Ksob and Tidzi wadi for the downstream part (Fig. 2).

Fig. 2
figure 2

Geological map of study area and cross section location

Geologically and hydrogeologically, the upstream part is marked by the outcrop of formations of Middle and Upper Cretaceous age, in particular, Albian-Vraconian, Cenomanian, and Turonian [2, 13] (Fig. 2). These formations are composed of limestone and dolomitic benches interspersed with marl and sandstone. The Albian-Vraconian formations contain sandstone and limestone dolomites alternating with sandstone banks and sandy clays.

The Cenomanian (about 200 m thickness) is represented by alternating marls with anhydrite, lumachellic, and dolomitic limestones. As for the Turonian, it is composed of limestones with an abundance of silica. These synclines contain important water reservoirs (aquifer), notably the Cenomanian–Turonian aquifer which remains the most important in the region. According to Jalal et al. [20], this aquifer has transmissivities varying between 2.2*10−4 and 2.7*10−1 m2/s.

The downstream part contains two important aquifers: (1) the Plio-quaternary and (2) the Turonian (Fig. 2).

The Plio-quaternary is characterized by a matrix of limestone sandstone. It contains an important water table, the wall of which is formed in the synclinal structure by the marls of Senonian (Fig. 2).

According to Mennani [24], this water table has transmissivities varying between 6.1*10−2 and 4.5*10−5 m2/s.

As for the Turonian, represented by limestones, it contains a captive aquifer under the Senonian marls in the synclinal structure and probably in direct contact with the Plio-Quaternary at the confines of this structure (Fig. 2). It has a transmissivity ranging between 0.8*10−4 and 2.7*10−2 m2/s [24].

3 Materials and methods

In this investigation, the results of nine campaigns 1990, 1995, 2007, 2009, 2015, 2016, 2017, 2018, and 2019 were used to assess the quality of groundwater in the Essaouira region in the context of climate change. Electrical conductivities, temperatures, pH, and nitrates were measured in situ, and the depth of the water level was measured using a 200 m piezometric probe.

The analyses of chemical elements were carried out at the Laboratory of Hydrogeology at the Faculty of Sciences Semlalia (Marrakech, Morocco) for the campaigns 1990–2009. As for that of 2015–2019, the analyses were carried out at the Laboratory of Geosciences and Environment—ENS at the Ecole Normale Superieure (Marrakech, Morocco). The SO4 anion contents were determined by the nephelometric method [34]. Concentrations of Ca and Mg cations were measured by the complexometry method (EDTA) and those of Cl by the Mohr method [34]. The Na and K contents were determined by flame photometry [34]. As for HCO3 contents, they were determined by titration using a sulphuric acid solution. All the samples display an ion balance of less than 10%, which allowed us to validate the obtained results. The obtained results are grouped in “Appendix”.

4 Results and discussion

4.1 Climatic parameters

The climate parameter data used in this study were obtained from the Tensift Hydraulic Basin Agency (ABHT). On an annual scale, the analysis of precipitation data for an observation period of 38 years (1978–2015) for the study area reveals significant variability (Fig. 3).

Fig. 3
figure 3

a Annual precipitations and b Pettitt test results

Indeed, this rainfall is subject to fluctuations from 1 year to another, with wet and other dry periods of two to five consecutive years. Precipitation rates vary between a minimum of 135 mm, measured during the hydrological year 2007/08 and a maximum of 707 mm during the year 1995/96 with an average of 304 mm.

The application of the Pettitt test [31] (Table 1) with a 90% confidence level shows the presence of a break in the precipitation series in 1998/97. The average of annual rainfall before and after this break is 313.8 and 263.4 mm, respectively. This makes it possible to estimate a rainfall deficit of 16%. The results of the Mann–Kendall test (Table 1) display a negative multivariable standard normal (UMK) (UMK = − 1.09). This reflects a downward trend in precipitation and confirms the results of the Pettitt test.

Table 1 Statistical tests

The evolution study of annual atmospheric temperatures was carried out over for 28 years (1987–2015). Maximum temperatures range between 29.3 and 37.2 °C with an average of 34.2 °C. As for the minimum temperatures, they range between 2.4 and 9.3 °C with an average of 7.4 °C, while the average temperatures vary between 17.7 and 22.4 °C with an average of 20 °C (Fig. 4a).

Fig. 4
figure 4

a Maximum, average, and minimum temperatures, b Pettitt test results

The application of the Pettitt test with a significance level equal to 5% shows the existence of a significant break in the series of maximum, average, and minimum annual temperatures, respectively, in 1999, 2000, and 1994 (Fig. 4b). For the maximum annual temperatures, the average before and after this break is 32.75 and 35.53 °C, with an increase of 2.8 °C. As for the mean annual temperatures, the average before and after the break is equal to 18.85 and 21.13 °C, respectively, with a warming of 2.3 °C. For minimum annual temperatures, the average before and after the break is 5.66 and 8.14 °C, respectively, with an increase of 2.5 °C.

This upward trend is corroborated by the Mann–Kendall test with a positive multivariable standard normal UMK for annual maximum temperatures (UMK = + 5.24), annual mean temperatures (UMK = + 5.65), and annual minimum temperatures (UMK = + 4.65).

4.2 Piezometry

The groundwater piezometric level evolution is closely related to the variation in precipitation [5, 26], the degree of exploitation and the contributions of surface water.

The piezometric maps drawn up from the data of 1990, 1995, 2007, 2015, 2016, 2017, 2018, and 2019 companions for the aquifers within the Essaouira basin show that:

  • For the upstream part, the groundwater has a general flow direction from SE to NW for the southern part and from NE-SW for the northern part (Fig. 5a). This flow is conditioned by the substratum of the studied reservoir. Over a 24-year observation period (1995–2019), the groundwater maintains the same flow direction with a decline in the piezometric level. This decline is manifested, for example, by the offset of the piezometric curves 450 and 600 m more and more to the upstream, and this on the two piezometric maps (Fig. 5a).

    Fig. 5
    figure 5

    Piezometric maps of the aquifer a Cenomanian–Turonian and b Plio-Quaternary

The piezometric level evolution of the wells, capturing the Cenomanian–Turonian aquifer, whose water level measured in 2007, 2016, 2017, 2018, and 2019, is presented in Fig. 6. From this, all the wells show a decline in their piezometric levels. It reached 9.3 m at well O30 and 12.6 m at well 75/52 between 2007 and 2019.

Fig. 6
figure 6

Temporal evolution of the piezometric level of certain wells capturing the Cenomanian–Turonian aquifer

  • For the downstream part, the general direction of groundwater flow of the Plio-Quaternary aquifer is generally from south-east to north-west (Fig. 5b). The groundwater flow within the Plio-Quaternary aquifer is imposed by the inclination of its substratum. The same remark was observed in the downstream part; the groundwater keeps the same direction of the flow with a decline in the piezometric level. Over a 29-year observation period (1990–2019) (Fig. 5b), the groundwater keeps the same flow direction with a decline piezometric level. This situation is materialized, for example, by the offset of the isopiezes 40 and 180 m more and more to the upstream, and this on the two piezometric maps. The piezometric level evolution of the wells capturing this aquifer and having experienced measurements of their water body during 1990, 1995, 2000, 2004, 2009, 2015, 2017, 2018, and 2019 (Table 2) shows a reduction in the water table at these wells. It reached 17 m at well 261/51 and 6.6 m at well 140/51, between 1990 and 2019. The drought of 1995, the driest year in Morocco during the twentieth century, led to a general decline in the water level.

    Table 2 Groundwater level evolution of some wells capturing the Plio-Quaternary aquifer

According to Fekri [15], differential gauges carried out during the hydrological cycle 1990–1991 demonstrated a supply of the Plio-Quaternary aquifer from the wadi Ksob (perennial stream, which becomes intermittent in recent years) with a flow rate of 42 l/s. Also, this aquifer is also recharged by direct infiltration of precipitation with an estimated volume of 50.5 l/s [15].

According to the National Office for Drinking Water (ONEP), the total volume pumped by boreholes capturing the Plio-Quaternary aquifer is 39.5 l/s. The samples taken from traditional wells (0.05 l/s/well [15]) as well as a loss at the outputs (of the order of 54.7 l/s [15]) increase the output balance at 99.2 l/s.

The comparison of the “inputs and outputs balance” shows a slight difference of 6.7 l/s. The study by Bahir et al. [5] showed that the piezometric level within the Essaouira basin is closely related to precipitation; this is confirmed by Ouhamdouch et al. [29]. Given that the study sector is characterized by an absence of industrial activity, the agricultural activity practiced by the population is of the “subsistence type”, and that the difference between the inputs and the outputs balance sheet is small, the effect of overexploitation and agricultural activity on the groundwater in the study area is negligible compared to the effect of climate change.

However, the decrease in the piezometric level could only be explained by the decrease in precipitation under the effect of climate change.

4.3 Hydrogeochemistry

Hydrogeochemical approach is a valuable tool to characterize groundwater chemistry. The latter is largely influenced by the characteristics of the host rock, by the hydrodynamics of the aquifers, and also by the climatic and exploitation conditions.

4.3.1 Chemical facies

To specify the chemical facies of groundwater in the study area, the major element composition has been plotted on the Piper diagram [32].

-For the Cenomanian–Turonian aquifer, representing the upstream part of the study basin, the projection of the analysed samples on the Piper diagram (Fig. 7a) shows that the waters have a mixed facies between Cl–Na, Cl–Ca–Mg, SO4–Ca–Mg, and HCO3–Ca–Mg. In 1995, the majority of the samples present a Cl–Ca–Mg facies. For the samples of the 2007 campaign, the chemical facies are of Cl–Ca–Mg, SO4–Ca–Mg, and HCO3–Ca–Mg type with the dominance of the Cl–Ca–Mg type. As for the samples analysed in 2016, they have a facies Cl–Na, Cl–Ca–Mg, and SO4–Ca–Mg type. For the 2017, 2018, and 2019 campaigns, we note that the analysed waters present four types of facies: Cl–Na, Cl–Ca–Mg, SO4–Ca–Mg, and HCO3–Ca–Mg with the dominance of the Cl–Ca–Mg type. A comparison of the results of the 1995 campaign and those of 2019 (Fig. 7b) shows that the groundwater facies of the Cenomanian–Turonian aquifer have experienced a slight change.

Fig. 7
figure 7

Piper diagram of analysed samples of a Cenomanian–Turonian aquifer from 1995 to 2019 and b comparison between samples of 1995 and 2019

-For the downstream part, the analysis of Piper diagrams for the Plio-Quaternary and Turonian aquifers (Fig. 8a and b) shows that they are classified under a mixed facies between Cl–Na and Cl–Ca–Mg. The grouping of points of the Plio-Quaternary aquifer close to those of the Turonian aquifer suggests an interconnection between these two aquifers.

Fig. 8
figure 8

Piper diagram of analysed samples of a Plio-Quaternary from 1990 to 2019 and of b Turonian from 2009 to 2019, and c comparison between samples of 1990 and 2019 for the Plio-Quaternary aquifer

The comparison between the results of 1990 and 2019 is presented in Fig. 8c. This shows that there is a slight evolution in the chemical facies of the Plio-Quaternary groundwater. Indeed, on the cations triangle concerning the 1990 campaign, the majority of the points have a percentage higher than 50% in Na with a tendency towards the Na pole. However, in 2019, the majority of the points do not exceed 50% in Na with a tendency towards the centre of the triangle “no dominant cations”. For the anion triangle, a clear dominance of Cl is noted, whether in 1990 or in 2019. The position of some samples relative to the sample representing seawater on the Piper diagram suggests that the Plio-Quaternary aquifer is probably affected by the marine intrusion.

4.3.2 Groundwater mineralization

To determine the origin and the main processes responsible for the groundwater mineralization of the study area, the correlations between the main major elements have been studied.

Chloride is a conservative ion that is always found in natural waters at very variable contents [16], and sodium is generally associated with chlorides. Chloride concentrations in groundwater of the upstream part vary from 113 to 1818 mg/l with an average of 574 mg/l. As for those of sodium, they vary between 12 and 541 mg/l with an average of 167 mg/l. According to the Piper diagram (Fig. 7), the Cl ions are the most dominant in the groundwater. For the downstream part, the Cl contents vary between 227 and 4800 mg/l with an average of 809 mg/l and the Na concentrations vary between 84 and 1950 mg/l with an average of 351 mg/l.

The Na versus Cl correlation diagram (Fig. 9a) shows a significant positive correlation between these two ions. This reflects that these two elements have probably the same origin. Some points are scattered around the halite dissolution line (line 1:1), reflecting the contribution of this mineral in the groundwater mineralization. This hypothesis is confirmed by negative values of the saturation indices with respect to this mineral (Fig. 10). The rest of the samples are located below the line 1:1 and parallel to it, reflecting a Na deficit. This suggests the contribution of a phenomenon other than the halite dissolution in the groundwater mineralization.

Fig. 9
figure 9

Correlation diagram a Na versus Cl, b Ca versus SO4, c Ca versus Mg, d Ca versus HCO3, e NO3 versus Cl, and f (Ca + Mg − HCO3 − SO4) versus (Na + K − Cl)

Fig. 10
figure 10

Saturation indices of analysed samples of a Cenomanian–Turonian, b Plio-Quaternary and c Turonian

The Na deficit compared to Cl could be linked to the bases exchange reactions, as shown in Fig. 9f, with the aquifer matrix, where the Na ions are fixed by the complex and replaced by Ca ions according to Eq. 1 [8]:

$${\text{Na}}^{ + } + \frac{1}{2}{\text{Ca}} - X_{2} \to {\text{Na}} - X + \frac{1}{2}{\text{Ca}}^{2 + }$$
(1)

with X being the aquifer matrix.

Also, an excess of Na could be explained by the second type of cations exchange where the Ca and/or Mg ions will be released in water and the Na ions will be fixed by the matrix according to Eq. 2:

$$\frac{1}{2}{\text{Ca}}^{2 + } + {\text{Na}} - X \to \frac{1}{2}{\text{Ca}} - X_{2} + {\text{Na}}^{ + }$$
(2)

The Ca contents of the groundwater in the upstream part vary between 82 and 770 mg/l with an average of 214 mg/l. As for those of SO4, they vary between 13 and 1942 mg/l with an average of 339 mg/l. As for the downstream part, the Ca concentrations oscillate between 64 and 850 mg/l with an average of 164 mg/l, and those of SO4 vary between 30 and 830 with an average of 145 mg/l.

Figure 9b shows the existence of a significant correlation between the Ca and SO4 ions. Indeed, the points whose Ca/SO4 molar ratio is close to 1 reflect the same origin of these two ions which could be the gypsum and/or anhydrite dissolution. This is confirmed by negative values of the saturation indices with respect to gypsum and/or anhydrite (Fig. 10). However, the excess of Ca compared to SO4 observed for the majority of the points could be linked to the phenomenon of reverse bases exchange. Also, the saturation indices calculated for these points with respect to carbonate minerals are close to zero, or greater for some samples, corroborating that the enrichment of Ca is mainly due to the bases exchange phenomenon (Fig. 9f).

The Ca versus Mg diagram (Fig. 9c) shows a positive correlation between these two ions, and this reflects that these two elements come from the same origin. The majority of the points are scattered around the dolomite dissolution line (line 1:1), thus suggesting the contribution of the dissolution of this mineral to the groundwater mineralization. Other points are located above the line 1:1, confirming the contribution of the bases exchange process in the groundwater mineralization of the aquifers studied.

The Ca versus HCO3 correlation (Fig. 9d) shows that these two elements do not have a significant correlation and that the majority of the analysed samples show a Ca/HCO3 molar ratio greater than 1. This excess of Ca compared to HCO3 ions translates the existence of other sources of calcium which could be the phenomenon of ions exchange and that of dedolomitization (incongruent dissolution of dolomite) [23] accompanied by simultaneous precipitation of calcite.

4.4 Nitrates contamination

The main source of nitrate in water is the leaching of nitrogenous products in the soil following the decomposition of organic matter or synthetic and/or natural fertilizers. The nitrate content of unpolluted natural waters is highly variable, varying from 1 to 15 mg/l depending on the season and the origin [10].

The NO3 contents in groundwater of the Cenomanian–Turonian aquifer (upstream part) vary from 0 to 175 mg/l with a punctual spatial distribution (Fig. 11a). Generally, levels are high in the Meskala region and exceed the threshold (50 mg/l) set by the World Health Organization [37]. Also, high values have been noted in some other wells such as 613/52, O37, 75/52, and O56. This could be explained by traditional methods of drawing which cause that a significant part of water flowing around the wells constitutes quasi-permanent puddles which enrich NO3 by livestock excrement during watering. For the Plio-Quaternary and Turonian aquifers, the NO3 contents vary, respectively, between 0 and 400 mg/l and between 0 and 65 mg/l (Fig. 11b).

Fig. 11
figure 11

Spatial distribution of NO3 content in groundwater of a Cenomanian–Turonian and b Plio-Quaternary and Turonian

The very weak correlation between Cl and NO3 (Fig. 9e) makes it possible to say that the levels of NO3 assayed in the samples analysed are not of agricultural origin since the chlorides are due to the dissolution of the evaporate minerals.

The highest concentrations within the Plio-Quaternary aquifer are recorded in the southwest part, near Cap Sim (wells 11/51, O94, and O95) and in the north-west, the tourist area of the Diabate (well 149/51). These high levels could be explained by the intense concentration of septic tanks constructed by the guest houses in the tourist area of Sidi Kaouki because of the absence of a sanitation network. As for the Turonian aquifer, only two points for each aquifer have levels exceeding the limit set by WHO [37].

The contamination of the other wells could be explained by traditional methods of drawing which cause that a significant part of water flowing around the wells constitutes quasi-permanent puddles which enrich NO3 by livestock excrement during watering.

4.5 Evolution of groundwater salinity

The groundwater salinization is a very marked phenomenon in areas of water scarcity, especially the Saharan, arid and semi-arid zones. The scarcity or even the absence of surface water and the increasing demand for water as well as the decrease in precipitation have created enormous pressures on groundwater which have thus resulted in the degradation of their quality.

The spatial–temporal distribution of salinity was studied to assess the impact of climate change on the groundwater quality of the study area. For the upstream part, the 1995 campaign shows the salinity values vary between 0.2 and 1.9 g/l with an average of 0.7 g/l. In 2007, the salinity values fluctuated between 0.5 and 2.4 g/l with an average of 1.1 g/l. As for the 2016 campaign, its values vary between 0.3 and 4.6 g/l with an average of 1.37 g/l. For the 2017 campaign, the salinity fluctuates between 0.3 and 4 g/l with an average of 1.29 g/l. In 2018, the salinity values vary between 0.4 and 4.3 g/l with an average of 1.4 g/l and between 0.35 and 4.4 g/l with an average of 1.4 for samples from the 2019 campaign (Fig. 12).

Fig. 12
figure 12

Spatial distribution of salinity in Cenomanian–Turonian aquifer

From the analysis of the maps in Fig. 12, it can be seen that the salinity values become more and more important by advancing in time and going from east to west, and this during the six campaigns. Taking, for example, the region of Sebt Kourimat, recharge area of the Cenomanian–Turonian aquifer, the salinity values fluctuate around 0.46 g/l in 1995 to reach 2.9 g/l in 2019. However, the general spatial–temporal evolution of salinity shows an increasing trend.

For the downstream part, the groundwater of the Plio-Quaternary aquifer has salinity values ​​varying between 0.6 and 3.4 g/l with an average of 1.7 g/l in 1990, between 0.9 and 3 g/l with an average of 1.6 g/l in 1995, from 0.4 to 4.1 g/l with an average of 1.3 g/l in 2004, between 0.9 and 2.2 g/l with an average of 1.4 g/l in 2009, from 0.3 to 4.7 with an average of 1.5 g/l in 2015, between 0.4 and 4.8 g/l with an average of 1.53 g/l in 2017, between 0.5 and 6.5 g/l with an average of 1.6 g/l in 2018 and between 0.46 and 8.4 g/l with an average of 1.7 g/l in 2019 (Fig. 13). From the maps of Fig. 13, the highest values are observed in the southern and western part and this further to the remoteness to the recharge zones, to the residence time, to the influence of the Triassic terrains, and to the influence of the sea [marine intrusion (well 11/51)], while the low values are recorded in the northern part (along the Ksob wadi) and in the east which represent the recharge zones of the Plio-Quaternary aquifer. The temporal evolution of the groundwater salinity of the Plio-Quaternary aquifer shows an upward trend going from year to year and consequently deterioration in the groundwater quality. As for the Turonian aquifer, the minimum values of salinity are around 0.8 g/l and the maximum values are around 1.3 g/l with an average of 1.1 g/l, and this for 2004, 2009, 2015, 2017, 2018 and 2019 campaigns (Fig. 13). The temporal evolution of the groundwater salinity of this aquifer does not show a significant trend, and this could be explained by its significant depth and its captive nature.

Fig. 13
figure 13figure 13

Spatial distribution of salinity in Plio-Quaternary and Turonian aquifers

As the study area is under a semi-arid climate, with a tendency towards an arid climate in recent years accompanied by a decrease in precipitation and an increase in the temperature, which frequently causes intense periods of drought resulting in evaporation that affects surface and groundwater, especially the shallow waters, the degradation of the groundwater quality is mainly due to this situation and the decrease in the piezometric level caused by climate change.

5 Conclusion

As the other basins from the coastal zones, the Essaouira basin has not been spared from the effect of climate change. The combination of hydroclimatic, piezometric, and hydrogeochemical approaches in the study of the groundwater resource within the Essaouira basin led to the following conclusions:

Analysis of precipitation evolution using the Pettitt and Mann–Kendall statistical tests made it to detect a downward trend in precipitation in the whole basin of the order of 12–16%. This decrease is accompanied by significant warming of the order of 1.2–2.3 °C. This will undoubtedly hurt the groundwater recharge.

The piezometric approach has shown that the Cenomanian–Turonian and Plio-Quaternary aquifers have retained the general flow direction of their groundwater, during the study period. Monitoring the piezometry over a period of 24 years (1995–2019) for the Cenomanian–Turonian aquifer and 29 years (1990–2019) for the Plio-Quaternary aquifer shows a continuous drop in the piezometric level which exceeds 12 m for the Cenomanian–Turonian aquifer, 17 m for the Plio-Quaternary aquifer.

The general downward trend in the piezometric level could be explained by the decrease in precipitation caused by climate change.

The results of hydrochemical approach show that the groundwater of the Cenomanian–Turonian aquifer presents the Cl–Ca–Mg, Cl–Ca, Cl–Na, and HCO3–Ca mix facies with the dominance of the Cl–Ca–Mg mix and Cl–Ca facies. The study of the temporal evolution of these facies shows that there has been a slight change. The groundwater of the Plio-Quaternary and Turonian aquifers is of mixed type between Cl–Na and Cl–Ca–Mg. The chemical facies experienced a slight evolution from the Cl–Na facies to the Cl–Na and Cl–Ca–Mg facies for the Plio-Quaternary aquifer and from the Cl–Na facies to the Cl–Ca–Mg facies for the Turonian aquifer.

The correlations established between the major element concentrations show that the groundwater mineralization is controlled by the dissolution of evaporate (halite, gypsum, and/or anhydrites) and carbonates (dolomite) minerals, by the bases exchange phenomenon, and by the marine intrusion, especially at the Plio-Quaternary aquifer. The study of the spatio-temporal evolution of the groundwater quality shows a gradual deterioration in time and space.

As the study area is under a semi-arid climate, with a decrease in precipitation and an increase in the temperature, which frequently causes intense periods of drought resulting in evaporation that affects surface and groundwater, especially the shallow waters, the groundwater quality degradation is mainly due to this situation and to the decrease in the piezometric level caused by climate change.

However, the Essaouira basin is vulnerable to climate change because its recharge is entirely dependent on precipitations.