Introduction

Water is essential for peoples’ health and socioeconomic development. With the improvement in living standards, people have not only put efforts into safeguarding sufficient quantities of water resources, but have also paid more attention to increasing water quality (Wu et al. 2013; Wang et al. 2014). The ever-growing demand for freshwater for a number of human purposes has become a worldwide cause of concern. Nowadays, groundwater reserves are exposed to intensive exploitation, mainly from strong agricultural development accompanied by low recharge infiltration to the phreatic aquifers (Walraevens et al. 1994; Van Camp and Walraevens 2009; Van Camp et al. 2010, 2012, 2013; Mjemah et al. 2011; Radfar et al. 2013; Werner et al. 2012), that may lead to serious problems in coastal zones where freshwater reservoirs are connected to the sea (Masciopinto 2006; Mjemah et al. 2009; Van Camp et al. 2014), resulting in deterioration in groundwater quality. The agricultural development also leads to changes in land cover and land use, with declining natural vegetation (Kassa et al. 2015; Grimaldi et al. 2015; Walraevens et al. 2015; Wildemeersch et al. 2015; Wang et al. 2016).

This situation is particularly observed in coastal areas of the Mediterranean region of North Africa and the Middle East, where surface waters are limited and population densities are large. Overexploitation of groundwater in these regions is the major cause of seawater intrusion problems (Ben-Asher et al. 2000; Edmunds and Milne 2001; Gordu et al. 2001; Yazicigil and Ekmekci 2003; Karahanoglu and Doyuran 2003; Demirel 2004; Camur and Yazicigil 2005; De Montety et al. 2008; Custodio 2010; Alfarrah et al. 2011). Groundwater quality patterns are complex because of the input from many different water sources (Trabelsi et al. 2007; Zouhri et al. 2008). These include seawater intrusion, ascending deep saline groundwater and anthropogenic sources such as wastewater or irrigation return flow (Coetsiers and Walraevens 2009; Walraevens et al. 2013).

Salinization is represented by the increase in total dissolved solids (TDS) and some specific chemical constituents including, Na+, Mg2+ and SO 24 ; Walraevens et al. 1993a, b; Morell et al. 1996; Sukhija et al. 1996; Chaouni Alia et al. 1997; GiméNez and Morell 1997; Walraevens et al. 2007; Mtoni et al. 2012, 2013; Da’as and Walraevens 2013). The main sources of SO4 2− in groundwater next to mixing with sea water are oxidation of pyrite (FeS2), and the dissolution of gypsum and anhydrite (Coetsiers and Walraevens 2006; Coetsiers et al. 2009).

In Libya, numerous irrigation regions are located near the coast, principally in the northern part of Jifarah Plain, including Sabratah region, where extensive irrigated areas have been established in the late 1970s and have evolved into advanced agricultural production zones; these activities are primarily dependent on groundwater extraction. Sabratah is the area of the highest agricultural activity of Jifarah Plain and is one of the most important touristic centres. The archaeological site in Sabratah was registered as a UNESCO World Heritage Site in 1982 and has substantially contributed to touristic expansion. Water overextraction for urbanization and tourism is concentrated in the coastal part of Sabratah, which has strongly developed since the beginning of the 1980s.

This situation has led to two significant problems linked to human activity: (1) salinization due to the formation of large piezometric drawdown cones, which have induced seawater intrusion by reversing the hydraulic gradients into aquifers, (2) direct input of nitrate mainly from fertilizers and sewage. Agriculture is based on intensive irrigation and fertilization to improve the soils. High pumping rates lead to aquifer drought, large water level drawdown and most of groundwater in the south being pumped from the lower part of the aquifer formation, which is comprising gypsum/anhydrite deposits.

The principal aquifer used by the population in Sabratah is the Upper Miocene–Pliocene–Quaternary aquifer system, known as “first aquifer” or “upper aquifer”; the aquifer is divided into a number of aquifer layers by less permeable intercalations; all layers are considered as one unconfined aquifer unit (Alfarrah et al. 2013). The Sabratah upper aquifer is influenced by different sources of contamination, most serious is saltwater invasion (Alfarrah 2011). Sabratah area is a typical example showing the problems of coastal zones under high anthropogenic pressure in dryland regions. The objective of this paper was to investigate the hydrochemical processes that have caused salinization of groundwater in the main aquifer of Sabratah and to recognize the different sources of pollution, and their relation to the intense water withdrawal.

Materials and methods

Sabratah (also spelled Subrata) lies on the Mediterranean coast about 66 km west of Tripoli (Fig. 1). The region of study is located in the western part of central Jifarah Plain between 32°49′31″ North and 12°37′5″ East. This area extends for about 20 km along Sabratah–Surman coastal area and about 22 km inland. Topography is rising towards the south, a general trend in overall Jifarah Plain, which is bounded to the south by Jabal Nafusa Mountains.

Fig. 1
figure 1

Location and topography of the study area in Jifarah Plain in Libya

The shortage of good quality water from surface sources has made groundwater to be very important in the study area. The scarcity of water in Sabratah is becoming more pronounced due to the increase in the population coupled with improvement in the standard of living over the last few decades. The area of the study accommodates dense population with more than 93,000 inhabitants mostly concentrated in the coast.

The climate in the study area is arid to semi-arid and typically Mediterranean, with irregular annual rainfall. The average annual rainfall and evapotranspiration rates are 250 and 1535 mm/year, respectively (Alfarrah 2011). The estimation of groundwater exploitation (in the whole Jifarah Plain) from the main upper aquifer shows that the total amount of groundwater pumped in the Jifarah Plain for domestic, industrial and agricultural uses amounts to 1201.30 Mm3/year (Alfarrah 2011). For drinking water supply and domestic wells, the overall amount pumped is 6% of the total amount of groundwater extraction. The yield of irrigation wells was estimated to be 1123 Mm3/year, which is equal to 93% of the total amount of groundwater extraction. The industrial sector pumps only 1% of the total groundwater exploitation in the plain.

Geological and hydrogeological setting

The Sabratah Basin is situated on the continental margin of Africa. Although the basin is thought to be underlain by Palaeozoic rocks, the oldest encountered in boreholes are Triassic in age. These are continental, passing upwards into evaporites, a sequence thought to represent the progressive subsidence of the margin during major Mesozoic extension of the Tethyan Ocean. Continued subsidence through the Jurassic and Early Cretaceous led to the deposition of marine sequences.

Figure 2 represents the geological map for Sabratah region with the sampling boreholes location. The sediments of the Sabratah region have been deposited in early Mesozoic times in a near shore lagoonal environment. The lithology of the upper aquifer varies widely and includes detrital limestone, dolomite, gravel, marl, clay, silt, sand, sandstone, gypsum/anhydrite and calcarenite. To the south of Sabratah, the lower layer of the main aquifer is composed of gypsiferous limestone, anhydrite and sandstone, producing highly mineralized sulphate water in this area (Alfarrah 2011). Middle Miocene clay separates the upper aquifer system in the area from the middle aquifer. The bottom of the main aquifer varies between 30 m in the north and 200 m to the south of the region, where depths of the pumping wells are between 30 and 180 m. Most of these wells have productivity of about 50–80 m3/h (Alfarrah et al. 2013).

Fig. 2
figure 2

Geological map of Sabratah with location of sampled wells and of hydrochemical cross section

The geological deposits, relevant to the hydrogeology of the area, comprising the upper aquifer formations, are given in Table 1.

Table 1 Summary of the stratigraphic section of the upper aquifer formations in the coastal area of Jifarah Plain

It follows that coastal dunes are composed of aeolian materials containing a high amount of gypsum. In some locations, they are composed of pure gypsum (98%) mainly in the immediate vicinity of the sebkhas (Libyan Industrial Research Centre 1995).

Methodology

Sampling and analysis

Water samples were collected from 50 wells (mostly 20–180 m deep during the dry period from September to November of 2008. The samples were collected during pumping, and the depth to the water level was measured in static conditions with water level meter, using ground surface as a reference.

Samples were collected along three vertical profiles perpendicular to the coast (Fig. 2), up to 20 km inland. All water samples were filtered through 0.45 μm MF-Millipore membrane filters in the field and then stored in polyethylene bottles. Two samples were collected from each sampling site, one for anions determination, the other for cations analysis; the latter sample was acidified with nitric acid to prevent metal precipitation.

Physical properties were measured including: water level, temperature, pH and electrical conductivity. Flame atomic absorption spectrometry (Varian) was used to analyse cations (Na+, K+, Mn2+, FeTotal, Ca2+, Mg2+, Zn2+, Si4+) and molecular absorption spectrophotometry (Shimadzu) was used to analyse anions (Cl, NO3 , NO2 , SO4 2−, PO4 3−) and NH4 + ion selective electrode was used to measure F. The titration method was used for the determination of carbonate (CO3 2−) and bicarbonate (HCO3 ) using dilute HCl acid with end points at pH 8.2 and 4.3, respectively. Standard Methods for Examination of Water and Wastewater (American Public Health Association 1985) were used, and analyses were performed at the Laboratory for Applied Geology and Hydrogeology at Ghent University.

Ionic balance was computed for each sample to assess the accuracy of analyses. All samples exhibited imbalances of less than 5%.

Hydrochemical methods

The hydrochemical evolution is investigated based on the calculation of the saturation indices (SI), the ion deviations (Δm i ) from conservative mixture of freshwater/sea water, graphical presentation including Piper diagram, ionic ratios calculation, elaboration of hydrochemical profiles and water quality parameter mapping.

PHREEQC is the international standard reference program for hydrochemical modelling, developed by the United State Geological Survey (USGS). The program can be used for speciation, batch-reaction, one-dimensional transport, and inverse geochemical calculations. Using the PHREEQC 2.16 program (Parkhurst and Appelo 1999), saturation indices were calculated for calcite, dolomite, halite and gypsum.

The potential deviations from the simply mixed composition of different end members results from various chemical processes are known as the ionic deltas. When is positive, groundwater is getting enriched for ion i whereas a negative value indicates a depletion of the ion i compared to the theoretical mixing (Andersen et al. 2005).

The ionic deltas quantify the extent of chemical reactions that affect groundwater composition, additional to mixing.

The seawater fraction (fsea) in the groundwater was estimated using chloride concentration (Custodio and Bruggeman 1987). The seawater fraction of a conservative mixing is calculated as follows (Appelo and Postma 2005):

$$f_{\text{sea}} = \frac{{m_{{{\text{Cl}}^{ - } ,{\text{sample}}}} - m_{{{\text{Cl}}^{ - } ,{\text{fresh}}}} }}{{m_{{{\text{Cl}}^{ - } ,{\text{sea}}}} - m_{{{\text{Cl}}^{ - } ,{\text{fresh}}}} }}$$
(1)

where \(m_{{{\text{Cl}}^{ - } ,{\text{sample}}}}\) is the concentration of Cl in the sample expressed in mmol/l, \(m_{{{\text{Cl}}^{ - } ,{\text{fresh}}}}\) is the concentration of Cl in the freshwater expressed in mmol/l, \(m_{{{\text{Cl}}^{ - } ,{\text{sea}}}}\) is Cl concentration in the seawater end member in mmol/l (for Mediterranean sea water, \(m_{{{\text{Cl}}^{ - } ,{\text{sea}}}}\) = 645 mmol/l (value taken from the literature; Da’as and Walraevens 2010). The seawater fraction is used for determining the concentration of each ion i resulting from the conservative mixing of sea water and the freshwater (Appelo and Postma 1993):

$$m_{{i,{\text{mix}}}} = f_{\text{sea}} \cdot m_{{i,{\text{sea}}}} + (a - f_{\text{sea}} ) \cdot m_{{i,{\text{fresh}}}}$$
(2)

where mi is concentration of an ion i in mmol/l and subscripts mix, sea and fresh are indicating the conservative mixture and end members (sea water and freshwater). The difference between the concentration of the conservative mixture m i,mix (mmol/l) and the measured one m i,sample (mmol/l) represents the concentration resulting from any chemical reaction occurring with mixing:

$$\Delta m_{i} = m_{{i,{\text{reaction}}}} = m_{{i,{\text{sample}}}} - m_{{i,{\text{mix}}}}$$
(3)

End members of Mediterranean sea water and freshwater from the upper aquifer are used in the calculation. For Mediterranean sea water where Cl = 645 mmol/l, the seawater fraction has been calculated as:

$$f_{\text{sea}} = \frac{{m_{{{\text{Cl}}^{ - } ,{\text{sample}}}} }}{645}$$
(4)

Stuyfzand classification is very appropriate for areas subjected to seawater intrusion.

This hydrochemical classification system combines excellent features of existing classifications with new, strongly diagnostic criteria for subdivision. This results in an easier identification of cation exchange phenomena, e.g. due to salt or freshwater intrusion, and in the applicability to a broader spectrum of hydrochemical environments. A hierarchical structure, high flexibility and logical coding guarantee an easy handling of a sophisticated system (Stuyfzand 1986).

The determination of a water type implies the successive determination of the main type (based on chloride concentration), the type (based on total hardness), the subtype (based on dominant cation and anion) and finally the class of the water sample. Each of the four levels of subdivision contributes to the total code (and name) of the water type (Stuyfzand 1986, 1993; Mollema et al. 2013).

The class is highly useful to recognize freshening/salinization phenomena, as it provides information on cation exchange. For its determination, the sum of Na+, K+ and Mg2+ in meq/l, corrected for a sea salt contribution, is calculated (Eq. 5). The result indicates whether cation exchange has taken place, by assuming that Cl behaves conservatively.

$$\left\{ {{\text{Na}}^{ + } + {\text{K}}^{ + } + {\text{Mg}}^{2 + } } \right\}{\text{corrected}} = \left[ {{\text{Na}}^{ + } + {\text{K}}^{ + } + {\text{Mg}}^{2 + } } \right]{\text{measured}}{-}1.061{\text{Cl}}^{ - }$$
(5)

where − = indicates a saltwater intrusion, + = indicates a freshwater encroachment and 0 = indicates an equilibrium.

For example, B4-NaCl reads as: “brackish extremely hard sodium chloride water, with a {Na+ + K+ + Mg2+} deficit”. This deficit often occurs during seawater invasion due to cation exchange reaction. According to Appelo and Postma (1993), the hydrogeochemical composition of coastal groundwater affected by seawater intrusion is mainly controlled by cation exchange next to the simple mixing process. These reactions are explaining the deviations of the concentrations of cations from conservative mixing of both waters.

Results and discussion

Water level and hydrodynamics

Figure 3 shows a piezometric map of Sabratah, and Fig. 4 is a hydrogeological profile constructed from the sea to the inland. The overall direction of groundwater flow in Jifarah Plain in general, including Sabratah, is from the south from Jabal Nafusa Mountains to the coast. The important storage withdrawal by overexploitation from the upper aquifer in Sabratah is causing continuous drawdown of the water level, seawater intrusion and the progressive groundwater quality degradation. Groundwater level is mostly low especially near to the coast, where zero and negative heads are recorded for the majority of wells. The piezometric level in depression cones in the central zone has dropped from 25 to 33 m below sea level (Fig. 3).

Fig. 3
figure 3

Sabratah piezometric map with flow vectors

Fig. 4
figure 4

Hydrogeological profile S–S″ in Sabratah. Cross section is indicated in Fig. 2

Sabratah profile is about 20 km long perpendicular to the sea (Fig. 4), starting from the sea and the city centre of Sabratah in the north to Bir al Isawiyah (Aga’r) in the south. Fifty wells were visited in the region. Their total depth is shallow (between 15 and 50 m) close to the coast and reaches 120 m southward. They are pumping for irrigation in the private farms and for domestic use.

Sabratah area is a very important case study in the arid and semi-arid region, where large stresses have been applied to the aquifer due to growing population and the important location of the area, its contribution to the agricultural output in Libya and its importance as a touristic city in the country. In this area, the largest depression cone along the coast of Jifarah Plain was formed as a result of overexploitation.

Sabratah belongs to the area with the highest agricultural activity in Jifarah Plain, especially in Suq al Alalqah at about 6 km from the coast and areas towards the south of the region. Large number of wells in the profile show negative heads with a minimum of − 33 m.a.s.l at the centre of depression cone. From Figs. 3 and 4, it can be concluded that, although the general groundwater flow is from south to north following the topography (see Fig. 1), locally in many cases flow is towards the reduced heads in the stressed areas.

Hydrochemical parameters

Major ions were analysed and pH, Eh, electrical conductivity (EC) and temperature were measured on all samples using WTW instrument. The temperature ranges between 19 and 25 °C, pH range is 6.71–8.21, Eh range is 128–463 mV, EC range is 805–15,650 µS/cm (25 °C), TDS range is 564–11,141 mg/l and chloride concentration ranges between 95 and 5282 mg/l. Table 2 shows analytical results of groundwater for some representative samples in Sabratah area.

Table 2 Selected results for physico-chemical parameters for groundwater samples in Sabratah area

Saltwater contains roughly 35,000 mg/l of dissolved solids, of which 19,000 mg/l is chloride (Lyles 2000). Consequently, the main cause of high chloride in coastal aquifers is most likely attributed to seawater intrusion.

EC is positively correlated with the concentration of ions, mainly Cl concentration. Figure 5 shows three zones on a plot of Cl versus EC: freshwater zone, mixing zone and intrusion. It shows that groundwater samples with Cl exceeding 200 mg/l and EC exceeding ~ 1000 µS/cm are most likely influenced by seawater intrusion. Groundwater samples that are characterized by EC between 1000 and 5000 µS/cm represent a mixing between freshwater and saltwater.

Fig. 5
figure 5

A plot of chloride versus electrical conductivity showing fresh groundwater conditions, saltwater intrusion and mixing between the two end members

Figure 6 shows EC map for the analysed samples, and Fig. 7 is a map with the concentrations of Cl.

Fig. 6
figure 6

Electrical conductivity map of Sabratah

Fig. 7 
figure 7

Cl map for the upper aquifer of Sabratah

The high Cl anomaly is mainly from mixing with sea water. These high concentrations of chloride are observed in most wells within some kilometres from the sea and are related to active seawater intrusion. But high Cl is also found far inland at and nearby the depression cones. The concentration of Cl decreases gradually towards the south. High concentration of Cl still can be found in many farther inland wells. The higher concentration of Cl than the 250 mg/l value for standard drinking water at the south of the region can be linked to the synsedimentary marine influence of the groundwater, whereby deeper saline groundwater is affected by upconing due to groundwater exploitation.

The high concentration of major ions such as Cl, Na, Ca, K, Mg and a high EC indicate the presence of sea water in an aquifer (Mollema et al. 2015; Mollema 2016).

Sulphate concentration in Sabratah ranges from 29 to 2238 mg/l. Figure 8 shows spatial distribution of SO4 2− concentration in the study area. The main source for rising SO4 2− is mixing with sea water, which can add significant amounts of sulphate to freshwaters. High SO4 2− is mostly due to the high Cl concentration in the first aquifer, both in the seawater intrusion zones and in the depression cones, where deep saline water upconing occurs.

Fig. 8
figure 8

SO4 2− map for the upper aquifer of Sabratah

Towards the south of Sabratah region, a concentration higher than 1000 mg/l SO4 2− is recorded, about 11 km from the sea to about 20 km inland, with much higher SO4 2−/Cl compared to sea water. The main source of SO4 2− in this zone is the dissolution of gypsum/anhydrite from the lower part of the aquifer, where gypsiferous sandstone, gypsiferous limestone and anhydrite are present. In this zone Cl concentration is low, excluding seawater intrusion as the source.

In the coastal area, high concentrations of SO4 2− over 500 mg/l are observed at several wells (e.g. A4, A5, A23 and SR3). The additional source of high SO4 2− for these wells is the dissolution of gypsum from the superficial sebkha deposits.

The high SO4 2− in southern Sabratah is accompanied by high NO3 concentrations. Figure 9 shows the spatial distribution of NO3 in the study area. The average nitrate concentration of groundwater in the aquifer is about 63 mg/l, but contents as high as about 160 mg/l occur upstream in the south of the region. The high NO3 concentrations in these waters are a result of intensive agricultural activities mainly in the south of the region (> 100 mg/l is recorded for many wells), where high application of fertilizers is common during the last two decades (Alfarrah et al. 2011).

Fig. 9
figure 9

NO3 map for the upper aquifer of Sabratah

Irrigation with nitrogen fertilizers and domestic sewage and movement of contaminants in areas of high hydraulic gradients within the drawdown cones probably are responsible for localized peaks of the nitrate concentration at the central zone of the region.

Out of 50 samples analysed, 58% have NO3 more than the highest desirable level of 45 mg/l (WHO 2008). For sulphate 78% have SO4 2− higher than the highest desirable level of 200 mg/l and 32% have SO4 2− more than the maximum permissible value of 500 mg/l according to WHO (2008); a maximum of 2238 mg/l was recorded southwards. Out of 50 analysed samples, 80% exceed the recommended Cl value for standard drinking water (250 mg/l) and 28% have Cl greater than the highest admissible level of 600 mg/l (WHO 2008).

Because of gypsum dissolution in groundwater, Ca2+ concentration in groundwater increases in several wells to significant levels (e.g. A23 with Ca2+ of 796 mg/l). Additionally, the dissolution of sebkha deposits contributes to the high concentration of Ca2+ in several nearby wells.

A comparison of certain parameters (Na+, Ca2+, Mg2+, Cl, SO4 2− and HCO3 ) for all 50 samples with the Mediterranean sea water composition parameters in Fig. 10 shows a strong positive correlation coefficient for all samples from the coast and around the depression cone in the central part of the region. The correlation coefficient decreases gradually towards the south, where samples from upstream show negative correlation coefficient.

Fig. 10
figure 10

Comparison of Na+, Ca2+, Mg2+, Cl, SO4 2− and HCO3 for all 50 samples with the Mediterranean sea water composition

Hydrochemical facies

From the Piper diagram (Fig. 11), various hydrochemical facies were observed (NaCl, CaCl, MgCl, CaHCO3, NaHCO3 and CaSO4). The dominant water types are CaCl and NaCl, where most of these water samples are plotted above the mixing line of sea water–freshwater. Large number of samples show NaCl type, which can indicate a strong seawater influence (Pulido-Leboeuf 2004) or upconing of deep saline water, whereas CaCl water type is an indicator of salinization and cation exchange (Walraevens and Van Camp 2005). Sources of CaSO4 water type are the dissolution of evaporites intercalated within the deep sandstone layers of the aquifer and, to some extent, due to dissolution of the scattered sebkha deposits along the coast.

Fig. 11
figure 11

Piper diagram for analysed samples

Hydrochemical profile and water classification according to Stuyfzand

The main chemical reaction that occurs when sea water intrudes into freshwater is cation exchange, resulting in surplus of Ca2+ and deficit of Na+:

$${\text{Na}}^{ + } + 0.5{\text{Ca}} - {\text{X}}_{2} \to {\text{Na}} - {\text{X}} + 0.5{\text{Ca}}^{2 + }$$

The dominant Na+ ions are adsorbed by the exchanger (X) and Ca2+ ions released, leading to the formation of CaCl water type, this is a typical water type appearing in seawater intrusion (Jones et al. 1999). The salinization evolution can be shown as follows (Walraevens and Van Camp 2005):

$$\begin{aligned} & {\text{CaHCO}}_{3} 0 \Rightarrow {\text{CaCl}}^{ - } \Rightarrow {\text{NaCl}}^{ - } \Rightarrow {\text{NaCl}}0 \\ & {\text{F}}\left( {\text{fresh}} \right) \Rightarrow {\text{Fb}}\left( {\text{fresh}}{\text{-}}{\text{brackish}} \right) \Rightarrow {\text{B}}\left( {\text{brackish}} \right) \Rightarrow {\text{Bs}}\left( {\text{brackish}}{\text{-}}{\text{saline}} \right) \Rightarrow {\text{S}}\left( {\text{saline}} \right) \\ \end{aligned}$$

Chloride can be considered a conservative tracer of water salinization, since it is not significantly affected by sorption processes or biological transformations. In addition, chloride concentrations in sea water (ca. 560 mmol/l) are significantly higher than those expected in fresh unpolluted groundwater. The chloride ion concentration thus is taken as a reference parameter (Appelo and Postma 1993). Therefore, as saltwater intrudes into coastal freshwater aquifers, the Na/Cl ratio decreases and the Ca/Cl ratio increases.

During freshening of a saline aquifer, the process is summarized as follows:

$$0.5{\text{Ca}}^{2 + } + {\text{Na}} - {\text{X}} \to 0.5{\text{Ca}} - {\text{X}}_{2} + {\text{Na}}^{ + }$$

Flushing of the saline aquifer by freshwater will result in uptake of Ca2+ by the exchanger with concomitant release of Na, where an increase in the Na/Cl ratio, and formation of the NaHCO3 water type are observed, which indicate freshening. The anion HCO3 is not affected because natural sediments behave as cation exchanger at the usual near-natural pH of groundwater (Appelo 1994). The freshening process can be schematized as follows (Walraevens and Van Camp 2005):

$$\begin{aligned} & {\text{NaCl}}0 \Rightarrow {\text{NaCl}}^{ + } \Rightarrow {\text{NaHCO}}_{3}^{ + } \Rightarrow {\text{MgHCO}}_{3}^{ + } \Rightarrow {\text{CaHCO}}_{3}^{ + } \Rightarrow {\text{CaHCO}}_{3} 0 \\ & {\text{S}} \Rightarrow {\text{Bs}} \Rightarrow {\text{B}} \Rightarrow {\text{Fb}} \Rightarrow {\text{F}} \\ \end{aligned}$$

The major hydrogeochemical processes occurring in the upper aquifer are: mixing with seawater end member, cation exchange during salinization, dissolution of evaporites from the lower layer of the main aquifer or from superficial sebkha sediments, carbonate dissolution and agricultural pollution.

Figure 12 shows the hydrogeochemical profile in Sabratah. This is a typical example of the evolution of salinity along the flow path. The vertical position of the names of the water types has no relation with the sampling depth. The spatial distribution of water subtypes according to Stuyfzand is presented in Fig. 13 together with TDS distribution in the region.

Fig. 12
figure 12

Hydrochemical profile in Sabratah (location of cross section is indicated in Fig. 2)

Fig. 13
figure 13

Distribution of water types according to Stuyfzand with TDS concentration in Sabratah

The water classification scheme of Stuyfzand (1999) has the advantage that in brackish or saline groundwater, one can still identify many different water types even though the major anions and cations are the same and this may help to recognize processes such as upconing of more saline water in such an aquifer (Mollema et al. 2013).

Figures 12 and 13 show water type is CaSO4 in the south, CaMix in the central zone and NaCl and CaCl along the coast. The NaCl type results from the strong effect of seawater intrusion. CaCl is due to cation exchange reaction during the mixing process. At about 11 km from the shoreline (in Suq al Alalqah), CaMix(ClHCO3) evolves further inland to CaMix(SO4Cl), indicating the location of the transition zone: in this area the groundwater evolves from CaMix enriched with Cl ion to CaMix with SO4 2− as the dominant anion. In the upstream zone, brackish extremely hard CaSO4 water type is observed, up to about 20 km inland, due to the existence of the evaporitic rocks within the aquifer formation. The analytical results may additionally show a process of marine intrusion/upconing as a result of high exploitation, in the areas of the aquifer at the south of Sabratah, where the concentration of Cl is relatively high for many wells.

The Mg2+ concentration observed in several wells is mainly due to the freshwater end member derived from the recharge area, where dolomitic minerals are dissolved (Alfarrah 2011). Therefore, the positive cation exchange code is in this case not pointing to freshening, as Mg2+ is not supplied by the marine end member (Mollema 2016). At about 11 km from the coast and downstream, cation exchange equilibrium (code “0”) is found for most wells, which in this case indicates the onset of the salinization process (the value of (Na+ + K+ + Mg2+)corrected is decreasing as the marine cations are adsorbed during salinization).

Saturation indices

Precipitation and dissolution of calcite, dolomite, halite, gypsum and anhydrite were verified; the saturation indices (SI) were calculated. Figure 14 shows SI values for all selected minerals.

Fig. 14
figure 14

Calculated saturation indices of groundwater samples with respect to selected minerals

The results show that 75% of groundwater out of 50 samples analysed is supersaturated (SI > 0) with respect to calcite (CaCO3), 20% are undersaturated with respect to calcite (SI < 0) and 5% are at equilibrium (SI = 0). 60% of groundwater samples analysed seem to be oversaturated with respect to dolomite (MgCa(CO3)2) in 20% are undersaturated and 20% are at equilibrium. For gypsum (CaSO4·2H2O) and anhydrite (CaSO4), 98% of samples are undersaturated. Gypsum comes close to saturation (SI > – 0.75) in many wells towards the south of the region, where the dissolution of evaporites from the deep aquifer layer raises the SI and for several wells near the superficial sebkha deposits.

There is a slight supersaturation with respect to calcite (SI mostly 0–1) and dolomite (SI mostly 0–2), which is rather indicating groundwater in equilibrium with those minerals. During sampling, dissolved CO2 gas may escape, which is slightly raising pH and thus shifting carbonate equilibrium (more CO3 2−), leading to SI > 0, while in situ water in the aquifer has SI with respect to calcite close to zero. So, the water in the aquifer is not oversaturated.

Deviation from conservative mixture of end member fraction

To confirm the importance of cation exchange processes, the difference in concentration ∆n between the observed values and those expected whether mixing with sea water was the only process was calculated. Figure 15 shows the ionic deltas calculated for Na+, Ca2+, Mg2+, K+, HCO3 and SO4 2− for all analysed samples. It is clear that the process of cation exchange due to salinization is very evident. In Fig. 15 m Na+,reaction (ΔNa+) is plotted in the secondary axis; for freshwater, the ΔNa+ is usually positive, but in this case, a large number of samples have negative values particularly in the highly saline water, down to − 23 mmol/l. The deficit of Na+ is due to a reverse cation exchange reaction during the salinization process, where Ca2+ is released to the solution, while Na+ is captured, resulting in a deficit of Na+ in groundwater. The reverse relationship between the two ions (Na+ and Ca2+) is noticed particularly in the highly saline groundwater, where samples with large negative values of ΔNa+ generally show strong positive ΔCa2+. Potassium also shows negative (or very low positive) deltas characteristic for marine cations as a result of salinization by the intrusion/upconing of saline water.

Fig. 15
figure 15

Diagram of ionic delta for all analysed samples

Due to dissolution of Mg2+-rich carbonate, ΔMg2+ is positive for most of samples. Only very few samples show a deficit of Mg2+. Figure 15 also shows that the ionic delta of ∆HCO3 is positive for most water samples. This is due to the dissolution of carbonate minerals in the aquifer sediments. The gypsum dissolution increases ∆SO4 2− to high positive values up to 22 mmol/l, where most samples show positive ∆SO4 2−.

Dissolved ion relations

Figure 16 shows the scatter matrix plot for the major ions (Ca2+, Mg2+, Na+, Cl, HCO3 and SO4 2−). This plot shows correlations for each combination of two variables. In each row, the histogram of the entire distribution is shown, along with correlations with each of the other variables. For example, grids 1b and 2a plot the same data (Ca2+ vs. Mg2+), but in 1b Ca2+ is plotted on the y-axis, whereas in 2a, it is plotted on the x-axis.

Fig. 16
figure 16

Scatter matrix plot of the main ions Ca2+, Mg2+, Na+, Cl and SO4 2+

From Fig. 16, Ca2+ and Mg2+ correlate positively and significantly with SO4 2− (r 2 = 0.78 for Ca2+ and r 2 = 0.65 for Mg2+). The high correlation coefficient r 2 = 0.78 between Ca2+ and SO4 2− is pointing to the dissolution of gypsum/anhydrite from the deep aquifer layer and from the sebkha deposits near the surface. Next to the dissolution, of carbonate, a significant Mg2+ contribution is added from the intrusion of sea water. This can be seen by the high correlation coefficient between Mg2+ and Cl (r 2 = 0.71), and also between Mg2+ and SO4 2− (r 2 = 0.65). High positive correlation is found between Ca2+ and Mg2+ (r 2 = 0.85). The concentration of Ca2+ in sea water is much lower than Mg2+, and most of Ca2+ is derived from the dissolution of calcite in the freshwater aquifer and from cation exchange during the salinization process. The high correlation coefficient for the scatter plot with the linear regression line of Na+ versus Mg2+ (r 2 = 0.66) is explained by marine intrusion. Also as a result of strong seawater influence, lower concentration of Ca2+ compared to Na+ is observed close to the seaside and at the depression cones.

In the Cl versus SO4 2− scatter plot, the low correlation (r 2 = 0.30) is ascribed to the additional source of SO4 2− coming from the dissolution of gypsum from the deep layer of the aquifer at the south of the region.

Figure 17a, b shows the ion ratio diagrams of Na+/Cl versus Cl and SO4 2−/Cl versus TDS. The Na+/Cl ratio in the study area ranges from 0.47 to 1.43. Lower ratios of Na+/Cl (meq l−1/meq l−1) close to the Mediterranean seawater ratio (0.36, Fig. 17a) indicate saltwater intrusion, whereby Na+ becomes adsorbed to the clay due to cation exchange, resulting in the deficit of Na+ and surplus of Ca2+. Just few metres from the sea and in the depression cones, very low (< 0.50) ratios are recorded. Upstream, the Na+/Cl ratio is gradually rising, where it reaches up to more than 1.20. The fresh recharge water (TJ17) has Na+/Cl ratio of 1.22.

Fig. 17
figure 17

a Molar ratio of Na+/Cl versus Cl concentrations. b Molar ratio of SO4 2−/Cl versus TDS concentrations

In order to evaluate the effect of seawater mixing qualitatively, the ionic ratio SO4 2−/Cl (mg l−1/mg l−1) has been plotted versus TDS (Fig. 17b). There is a wide range of scatter for the SO4 2−/Cl ratio versus TDS, confirming that the Sabratah groundwater is controlled by other processes in addition to mixing with sea water, where samples from the south and the ones collected nearby sebkhas have a higher SO4 2−/Cl ratio than the fresh recharge water ratio (0.66; TJ17). The other analysed samples are plotted between the ratio of 0.139 and 0.66, indicating mixing of freshwater with the Mediterranean seawater end member having ratio of 0.139.

Conclusions

Hydrochemistry of the Sabratah shallow aquifer is very complex. The overexploitation for groundwater results in the degradation of the water quality by sea water and upconing of the deep brines. Cl, SO4 2− and NO3 are the major pollutants of the aquifer.

Seawater intrusion is accompanied by chemical reactions, which modify the hydrochemistry of the coastal aquifer. The most remarkable reaction is that of the inverse cation exchange, characteristic of the changes of the theoretical mixture of sea water–freshwater, which is carried out between clays and the aquifer water. This exchange consists in the release of Ca2+ and the adsorption of Na+.

Most of the observed high concentration of sulphate in Sabratah coast is coming from the effect of seawater intrusion. Additional important source of SO4 2− is gypsum dissolution from the upper aquifer’s formation in the upstream direction. The scattered sebkha deposits in the downstream direction, containing large amounts of gypsum, also produce high SO4 2− waters.

Another most serious problem in the study area is the increased level of nitrate concentrations. It has been found that in 40% of samples, nitrate contents range between 45 and 160 mg/l. The increased content originates from leaching of nitrates from the applied nitrogen fertilizers and from sewage. It is recommended that risk assessment of nitrate pollution is useful for a better management of groundwater resources, aiming at preventing soil salinization and minimizing nitrate pollution in groundwater.

The dissolution of carbonate is another important hydrochemical process in the main aquifer. The saturation index shows mostly a slight tendency to precipitation of calcite and dolomite in the aquifer system, but this can be ascribed to lowering of CO2 pressure at sampling, while in the aquifer, there is equilibrium with respect to these minerals.

Results show that water samples do not compare favourably with WHO standards (2008); many samples exceed the maximum admissible concentrations, highlighting the degradation of groundwater quality.

Since seawater intrusion is a severe problem in coastal aquifers of Libya, the adequate assessment of its importance is of capital interest for water resources management. Relatively simple measures such as electrical conductivity monitoring in pumping wells can serve as a proxy of seawater intrusion. Nevertheless, given the difficulty of planning and law enforcement in groundwater policies, extreme actions must be taken by the water authorities in coastal areas to find a suitable solution to this environmental crisis.