Introduction

Human livelihoods depend mainly on freshwater. Groundwater is one of the most fundamental resources of freshwater on the earth. Groundwater is 30% of the world's freshwater supply and is a significant water source for more than 2.5 billion people worldwide (Ajami, 2021; Shaji et al., 2020). Most African countries are arid to semiarid with limited water resources, where two-thirds of South Africa's population depends on groundwater to provide water (Mthembu et al., 2020; Smithers et al., 2017). The intensive human activities and over-exploitation of groundwater across the globe led to the degradation of groundwater quality (Abdelhafiz et al., 2021; Karunanidhi et al., 2021a; Machiwal et al., 2018). Groundwater pollution became one of the most worldwide issues in the last decades due to its impact on human health (Karunanidhi et al., 2021b; You et al., 2020). Urbanization processes release larger amount of chemicals that can reach the shallow groundwater aquifers. Potentially polluting substance can be released from agricultural activities (fertilizers and pesticides), stored in the underground (gasoline and septic tanks) (El-Fakharany et al., 2017; Howard & Gerber, 2018; Mansour, 2020). Several studies have carried out to determine the adverse effects of contaminated groundwater on human health (He et al., 2021; Karunanidhi et al., 2021b; Ukah et al., 2019; Usman et al., 2020; Zhang et al., 2018a). Cholera, dysentery, diarrhea, hepatitis A, typhoid, and polio are directly related to unhygienic and polluted drinking water. It is estimated that more than 485,000 persons die from diarrhea globally every year (WHO, 2017b, 2019).

Egypt is an arid country with water scarcity, especially in the desert areas. El Obour City is one of the sustainable development projects for lateral expansion in the Egyptian deserts. Unfortunately, the hydrogeologic and geomorphologic settings of El Obour city led to the emergence of the subsurface waterlogging problem. The city is divided mainly into three sectors: residential, industrial, and agricultural (Fig. S1). The waterlogging problem has been appeared in lower parts of some locations within the residential sector and adversely has affected the infrastructure (Fig. S2) and the lower groundwater aquifer quality (Abdelhafiz, 2017; Barseem et al., 2015b; Zeid et al., 2018). The government tried to solve this issue by setting up many wells for water collection and draining directly into the underlying groundwater aquifer. It is anticipated that these injected waters will be overloaded with organic, inorganic, and biological pollutants that will adversely influence the underline Miocene aquifer. The previous studies focused on the hydrochemical and engineering aspects of the waterlogging problem without concern about environmental quality and economic value (Barseem et al., 2015a; El-Aassar et al., 2010; Zeid et al., 2018). Zeid et al. (2018) pointed out the quality of this water for irrigation and, to some extent, drinking after simple physical treatment without considering toxic metals and bacteria. The current work will depend on combining hydrochemical, environmental, and photochemical techniques for combating waterlogging.

The most severe water pollutants are heavy metals and bacteria (Osman et al., 2012; Vasudevan et al., 2021; Xiong et al., 2021). Heavy metals naturally occur in small quantities in groundwater and are vital for both human metabolism and the growth of animals and plants. As they are persistent, non-biodegradable, stable, and harmful in the natural ecosystem, heavy metals are known to be essential pollutants affecting groundwater quality and pose a threat to human health. Exposure to polluted water (drinking or domestic use) has been linked to many health problems (Ahmed et al., 2021; He et al., 2021; Li & Wu, 2019). However, long-term exposure to toxic metals can also cause deadly diseases such as Alzheimer's and cancer (WHO, 2017a; Li et al., 2021; Mishra et al., 2010). As pollution is significant contamination of groundwater and affects almost 70 million people worldwide (UNESCO, 2009). The WHO stated that high arsenic intake might cause acute and chronic health effects, including cancer (Jadhav et al., 2015; Wen et al., 2013). Nakadaira et al. (2000) reported that long-term ingestion of low levels of arsenic in drinking water could lead to lung and prostate cancer. High contents of Cd, Cr, and Pb in drinking water can also affect the kidney, liver, and lead to fatal cancer. Moreover, high intake of As, Cd, Cr, and Pb can damage organs due to high-level toxicity and longtime persistence (Chen et al., 2018; WHO, 2017a). Subsequently, As, Cd, and Cr are human carcinogens, according to WHO (2011).

In Egypt, groundwater is the primary source of freshwater in the Eastern and Western Deserts and Sinai. Shallow groundwater provides Egypt with about 6.5 BCM/year and represents the second freshwater source after the Nile River (MWRI, 2014; Omar & Moussa, 2016). The study area is located in the Eastern Desert, representing recently built urban and agricultural lands. El-Aassar et al. (2010) studied the environmental impacts on groundwater quality in El Obour city and its vicinities. The results reflected that the pollution source is from a municipality or public water or leakage from the sewage or industrial wastewater system. Many authors have pointed out groundwater pollution in Egypt by heavy metals (Aamer et al., 2016; Salman & Elnazer, 2020; Salman et al., 2019a, b). Several groundwater samples obtained from the Nile aquifer were observed to contain carbamate, organochlorine, and organophosphorus pesticides (Abdel-Shafy & Kamel, 2016). Masoud et al. (2018) have found several pesticides in the groundwater collected from Al-Gharbiya Governorate. The groundwater at the Delta was polluted with total and fecal coliform bacteria (range 0–300 and 0–72 MPN/100 ml, respectively) (Awad et al., 2015).

The adverse problems of polluted water led to a continuous search for low-expensive and effective treatment techniques for removing biological and chemical pollutants. Traditional water treatment methods (such as ozonation and chlorination) may not completely disinfect the water and also generate harmful by-products. As for photocatalysis, it depends on the oxidation of pollutants, an effective water purification process, and does not produce secondary harmful substances (Das et al., 2020). Photocatalytic techniques have been studied widely for environmental purification in liquid and gas phases. This may be attributed to that under mild conditions (ambient pressure and room temperature), photoactivated semiconductors by certain irradiation could mineralize many bacteria and organic pollutants that are non-biodegradable, toxic, and refractory to carbon dioxide and water. Titania (TiO2), as an eco-friendly (Chobba et al., 2019), less expensive, and highly photoactive catalyst, has been widely applied for remediation of organic pollutants, for air purification, as air filter and as a deodorant, for sterilization (Linsebigler et al., 1995). However, a small UV fraction of solar energy (3–5%) could be utilized due to the wide band gap of titania. Therefore, great research works have been put to develop efficient visible light-sensitive nano-photocatalysts by titania modification. Recently, anion doping of TiO2 films and powders with anions (i.e., nitrogen) has been studied (Batzill et al., 2006; Gole et al., 2004). Hence, the studied technique eliminates dissolved organic and microbial pollutants efficiently at the rates of 86.9% and 100% (El Nazer, 2017).

Without a robust understanding and greater certainty of where shallow groundwater pollution originates in El Obour city, environmental management or effective engineering strategies to find an optimal solution for waterlogging problem cannot be successfully applied. The current study dealt with chemical and bacterial contents and sources in shallow groundwater at northeastern Cairo and the impact of the injection of this shallow groundwater into the deep aquifer to resolve the waterlogging problem. The present study also aimed to investigate the reliability of advanced photocatalytic techniques application for water treatment, using N-doped TiO2 photocatalyst in the presence of UV–visible light as a source of irradiation.

Materials and methods

Study area and sampling sites

The study area located on the eastern side of the Nile Delta with a total area of 65 km2 is considered the largest newly urbanized communities in Egypt (Details presented in Section 1 of the Supplementary information (SI)). In the southern part of El Obour city, sixth and seventh districts, the waterlogging problem is severely documented because of geological and topographical variations (Fig. S3). Water samples were collected from 28 sampling sites (Fig. 1), out of which 22 water samples from the sixth and seventh districts (where the problem-focused and they face risks in the area). Thus, samples were selected to represent the waterlogging issue in the southern part of the current area.

Fig. 1
figure 1

Location map of the collected water samples in the study area

1 L sterile plastic bottle was rinsed three times for each sample point, and the water samples were filled to the brim before sealing tightly to provide as little air as possible at the top of the bottles. Water samples were acidified by adding analytical grade nitric acid (98% pure) up to pH 2 for heavy metal analysis (Trick et al., 2018). The water samples were collected for bacterial analyses in brown glass bottles, which were used after sterilization and transferred to the laboratory in an icebox within 6 h.

Analytical methods

Twenty-six water variables were measured/determined in each sampling point. The pH, conductivity, and TDS were performed in situ by using a combined electrode (Hanna Hi93300). In the laboratory, the water samples were filtered and analyzed for chemical constituents employing standard procedures (APHA, 2012). Analytical methods and units of chemical water variables are summarized in Table S1. K2Cr2O7 open reflux method was used for Chemical Oxygen Demand (COD) (APHA, 1998; El Nazer et al., 2017). Heavy metals comprise arsenic (As), cadmium (Cd), copper (Cu), chromium (Cr), iron (Fe), lead (Pb), manganese (Mn), and zinc (Zn) were determined by using atomic absorption spectrometer (AAS-Perkin Elmer 400) at the laboratory of the National Research Centre.

To assess the suitability of water for irrigation use, magnesium ratio (MR) and sodium absorption ratio (SAR) were calculated. Excess MR in water affects the soil quality due to increasing alkalinity and, consequently, affects crop yields. The total bacterial counts (TBCs) and the total count for various bacterial indicators comprise total coliform (TC) and fecal coliform (FC), and fecal streptococci (FS) were carried out via the most probable number technique (MPN) (APHA, 2012; Divya & Solomon, 2016).

The remediation of organic pollutants and bacteria present in four collected representative samples has been performed using the photocatalytic treatment technique. Nitrogen-doped titania photocatalyst was synthesized by sol–gel hydrothermal technique using urea and titanium n-butoxide (TNBT) as precursor. TNBT solution and urea were taken in the molar ratio of 5:1. The prepared urea solution was added drop wise to a mixture of ethanol and titanium n-butoxide upon stirring for ~ 24 h at room temperature. The prepared catalyst was then dried at 60 °C and calcined at 400 °C for 4 h (Darwish et al., 2015). The Photocatalytic processes were performed using a (PHOCAT 120 W) solar photoreactor. The dispersion of polluted water containing (1 g/L Nitrogen-doped titania) was sonicated in water medium for 5 min. The polluted water contacting suspended photocatalyst was then irradiated using ten visible light lamps (λmax 400–700 nm) with a total power of 80 W. After 60 min of irradiation, three milliliters aliquots of the reaction mixture were withdrawn and analyzed. When titania photocatalyst suspension is exposed to the visible light, the excited titania could then absorb light energy resulting in the excitation of electrons from the valence band (VB) to conduction band (CB) (Fig. S4) (process is provided in the supplementary information). Subsequent oxidative degradation of dissolved organics and bacterial processes take place at the surface of the exciting photocatalyst (Gole et al., 2004; Pelaez et al., 2012).

Calculation

Sodium absorption ratio assesses the risk of sodium in irrigation water (Salman & Elnazer, 2015). SAR and MR were calculated using Eqs. 1 and 2.

$${\rm SAR}={\rm Na}^{+}/{\left[\left({\rm Ca}^{2+}+{\rm Mg}^{2+}\right)/2\right]}^{1/2}$$
(1)
$${\rm MR}=\left[{\rm Mg}^{2+}/\left({\rm Ca}^{2+}+{\rm Mg}^{2+}\right)\right]\times 100$$
(2)

where all the ionic values are expressed in meq/L. The water is considered suitable for irrigation when MR is greater than 50% (Raghunath, 1987). The water can be categorized based on SAR values into excellent (less than 10), good (10 ≤ SAR < 18), doubtful (18 ≤ SAR < 26), and unsuitable (SAR ≥ 26) (Richards, 1954).

Data analyses and quality control

Multivariate statistical analyses “Principal Component Analysis (PCA), cluster analysis, box plot, and descriptive statistics” were performed using SPSS 21, XLSTAT (Addinsoft, USA), and Origin Pro 8.5 software. Principal components with eigenvalues greater than 1 could be selected. The correlations between the factors and the variables were classified as strong, moderate, and weak when the absolute loading values more than 0.75, 0.75–0.5, and 0.5–0.3, respectively. Ward’s method (Ward, 1963) was chosen to combine the variables using the squared Euclidean distance as a similarity measurement to create the dendrogram for cluster analysis. It is widely used in environmental studies to discriminate, interpret geochemical data, identify, and variables grouping.

In order to control the accuracy and precision of the analytical procedure, recovery analysis was performed. The element concentrations in triplicate samples were determined. Calibration curves for each heavy element were drawn by running appropriate concentrations of the standard solutions. The blank absorbance was taken before sample analysis, and blended samples were inserted in the analyses. Analytical grade chemicals were utilized throughout the analysis procedures.

Results and discussion

Major characteristics and quality

Descriptive statistics of the water samples are summarized in Table 1. Approximately, 50% of samples (median) contains less than 796.6, 254.1, 69.7, 22.5, 247.5, 6, 235.9, 223.5, 130.6, 16, 0.16, and 168 mg/L of TDS, TH, Ca2+, Mg2+, Na+, K+, HCO3, SO42–, Cl, NO3, NH4+, and alkalinity, respectively. The high concentration of ions may be attributed to the dissolution of sediments in the study area and industrial, agricultural, and municipal effluents. The highest concentrations were recorded in the wells of the very shallow water table (near the surface). This may be attributed to the contact with the near surface constructions and filling materials. The high concentration of HCO3 and its –ve correlation with other ions indicated the high concentration of CO2 and consequently the surface runoff into the aquifer; the vulnerability of the aquifer (Elnazer et al., 2021). The comparison with WHO (2017a) shows that more than 90% of samples can be used for drinking based on pH, alkalinity, K+, and Mg2+ values. Seventy percent could use for drinking based on TDS, NH4+, Cl, and NO3; moreover, 49% based on Ca2+, Na+, EC, and SO42– values. The selected samples for the organic load survey (as indicated by COD) contained 230.4 and 960.8 mg O2/L. SAR and MR were varied in the ranges of 0.74–23.9 and 14–62, respectively. Approximately 93% and 86% of water samples belong to a suitable category and can be used for irrigation for all soils and crops based on SAR and MR values, respectively (Table S2).

Table 1 Descriptive statistics of the physicochemical parameters (mg/L), SAR and MR of water compared with WHO (2017a, b) specification

Hydrochemical classification and genesis of groundwater

Water types in the current area were noticed based on their chemical composition using piper diagram (Piper, 1944). Shallow groundwater samples are fall in three fields; 15 samples in Na–Cl field indicating weathering of halite, 7 samples in the field of mixed Ca–Mg–Cl, and 5 samples fall in the field of calcium bicarbonate. In addition, one sample falls in CaMgClSO4 type (Fig. 2a). Shifting some samples into the center of diamond shape means that these watercourses have been subjected to contamination by fertilizers and sewage (Ikhlil, 2009). Also, the diamond shaped can be divided into two equal upper and lower triangular fields, where the samples which appear in the upper triangle have secondary salinity properties (where SO42− and Cl exceed Na+ and K+), and the samples which appear in the lower triangular have primary salinity properties (where carbonates exceed Ca2+ and Mg2+) (Awad et al., 1995). The plotting of the sample within the upper half of the diamond indicates the secondary salinity resulting from waterlogging issue. The rising water level is bringing salts from the surface as well as seepage of wastewater and irrigation excess water led to the accumulation of salts in groundwater (Krishan, 2019).

Fig. 2
figure 2

Piper diagram (a) and Sulin's graph illustrate the genetic types (b) of the shallow groundwater in the study area

The Sulin's graph (Fig. 2b) was used to detect the origin of the water through two equal squares (Sulin, 1946). The upper right one displays the marine water genesis (MgCl2 and CaCl2). While the lower-left square shows the water of meteoric origin (NaHCO3 and Na2SO4). The two squares are diagonally subdivided into two triangles, where the diagonal line represents Cl (K + Na)/Mg = 1and Cl (K + Na)/SO4 = 1 for upper and lower squares, respectively. The output results indicate that the water samples are characterized by recent (NaHCO3) and old meteoric water (Na2SO4) type. Recent meteoric water (NaHCO3) type (10 samples) is formed by freshening processes where the fresh groundwater formed due to the seepage processes from the surface layers (Zeid et al., 2018) and irrigation. The old meteoric water (Na2SO4) type (15 samples) could be related to the groundwater formed before the seepage processes, where the soil salinity might be critical in controlling shallow groundwater composition. Two samples (Nos. 2 and 3) could be considered as a transitional stage between NaHCO3 type and Na2SO4 type (Fig. 2b). On the other hand, only one sample (No. 21) is classified as of marine origin and has MgCl2 composition content.

Heavy metals in water

The descriptive statistics of heavy metals results are described in Table 2 and compared with standard limits recommended by WHO (2017a) for drinking and United States Department of Agriculture (USDA) for irrigation (USDA, 2011). The results indicated the pollution of 100% of water samples with Pb, and more than 89% of samples exceeded the permissible limits of As and Cd recommended by WHO (2017a) (Fig. 3).

Table 2 Summary statistics of heavy metals (μg/L), total bacterial count (CFU/ml), and bacterial indicators (MPN-index/100 ml) and compared with recommended maximum concentrations of trace elements in drinking and irrigation water
Fig. 3
figure 3

Bivariate plots of As (a), Cd (b), Pb (c), and Cr (d) concentrations in shallow groundwater and compared with WHO and USDA guidelines

The arsenic content estimated in the studied water samples fluctuates between BDL and 4849 μg/L with an average of 1517 μg/L (Table 2). Several intermixed processes control arsenic content, as noticed from the wide range between Q1and Q3 (Fig. 4a), including the natural water–rock interaction and the anthropogenic activities such as leakage from industrial and domestic wastewater (Boonkaewwan et al., 2021; El-Aassar et al., 2010). As which is strongly correlated with Ca2+, Mg2+ and SO42− (Figs. 4b & S5) reflects the role of natural source, maybe dissolution of anhydrite and gypsum from the country rocks. These results are in line with Abdelbakey (2014), who found gypsum in the study area's lithology. On the other hand, its + ve correlation with NO3¯ and NH4+ pointed out the anthropogenic contribution of As content (Fig. S6). Application of nitrogen fertilizers, livestock farms, and wastewater leakage considered the main sources of nitrogen compounds in groundwater (Bahrami et al., 2020).

Fig. 4
figure 4

Box–whisker graph of trace elements (a) and the HCA dendrogram diagram showing main clusters (b) in the study area

In this study, the measured Cd concentrations in water ranged from BDL to 20 μg/L with a mean value of 8.79 μg/L. The insignificant difference between both mean and median, and Q1 and Q3 (Table 2; Fig. 4a) points to the uniform source of Cr in water. Cluster analysis confirmed this finding where Cd is strongly correlated with K+, indicating that Cd comes mainly from fertilizers use effect (Fig. 4b) (Abdel Latif & El Kashouty, 2010; Taha et al., 2004). Chaney (2010) reported the primary Cd source due to the anthropogenic, whereas a few geogenic Cd enrichment sources were identified. The + ve correlation between Cd and Zn can be attributed to the role of traffic emissions in the distribution of these metals. Cd and Zn present in many parts of vehicles and can be realized through abrasion and spills out of those parts (Elnazer et al., 2015). About 20–90 ppm Cd was recorded in car tires (Nan et al., 2006) in addition to the importance of Zn in tire vulcanization (Adachi & Tainosho, 2004). The wells are commonly found inside the roads with some unsealed well-holes led to the leaching of surface substances into the wells.

The minimum, maximum, and mean Pb values in the water samples are 18, 820, and 214.96 μg/L, respectively (Table 2). Similar to As and Cd, the Pb concentration is a major threat in the studied area, which greatly exceeded the WHO permissible limit (10 μg/L) in all samples (Fig. 3c). Due to its presence in small amounts in the earth’s crust, Pb comes from various anthropogenic sources, such as industrial wastes and household products (detergents) (Kabata-Pendias & Mukherjee, 2007; Nadeem-ul-Haq, 2009; Tchounwou et al., 2012). Thus, the contribution of numerous sources can also be depicted by significant differences between mean and median in a box plot (Fig. 4a). The presence of NO3¯ indicates the effect of human activity in the distribution of Pb in the studied area (Fig. 4b). The negative relationship between water depth and As, Cd, Pb concentrations predicted the influence of surficial substances for groundwater contamination by these metals (Fig. S7).

The measured chromium content in the water ranged from below the detection limit to 140 μg/L. Eighty-nine percent of analyzed water samples had Cr < 50 μg/L (Fig. 3d). Only two samples (7.1% of total samples) exceeded the permissible limit of 300 μg/L recommended by the World Health Organization for (Fe) in water samples (WHO, 2017a). All the analyzed water samples had Cu, Mn, and Zn within safe limits.

By comparing the analyzed data of trace constituents in the water samples with the recommended limits of heavy metals for irrigation, the concentrations of Cd, Cu, Cr, Fe, Mn, Pb, and Zn were within permissible limits for irrigation (USDA, 2011). Nevertheless, approximately 39.3% of the water samples exceeded the maximum allowable limit of As for the irrigation (Fig. 3a). Previous studies have shown a significant association between the contamination of heavy metals and the prevalence of chronic diseases such as kidney failure, hair loss, and chronic anemia in Egypt (Mandour & Azab, 2011; Melegy et al., 2014; Salem et al., 2000; Salman et al., 2019b). It can be seen from the assessment of the water parameters for drinking and irrigation purposes that arsenic concentration is found to be a significant threat in the study area.

Bacterial populations in water

Bacterial pollution worldwide is systematically assessed using fecal indicator bacteria contents, including E. coli and enterococci, as proxies for pathogenic organisms (Zhang et al., 2020). The bacterial results comprising total bacterial counts (TBCs), fecal streptococci, total coliform, and fecal coliform are shown in Tables 2, S2, and Fig. 5. TBCs ranged from 2.9 × 104 to 91 × 104 with average 22.2 × 104 (CFU/ml). All samples were extremely contaminated with TBCs surpass WHO (2017a) guidelines (50 CFU/ml). The highest (average) values of TC and FC were 2400 (497.4) and 1700 (358.3) (MPN/100 ml), respectively. The highest records of total and fecal coliforms were observed in the samples close to Orabi farms. It may reflect the role of agricultural wastewater and animal wastes as significant contamination sources. On the other side, 3 water samples were free of total coliform and fecal coliform bacteria (< 1.8 MPN/100 ml) (Table S2, Fig. 5). This could be due to the soil’s role, where soil and rock filter bacteria naturally (Ikhlil, 2009; Mwabi et al., 2013).

Fig. 5
figure 5

Total bacterial counts (TBCs) and bacterial indicators (TC, FC, FS) in water samples

Fecal streptococci ranged from < 1.8 to 790 (MPN/100 ml) in water samples with an average of 115.9 (MPN/100 ml) (Table 2). Like coliforms, the highest MPN/100 ml of fecal streptococci was determined in sample No. 18 located behind Orabi farms directly (Fig. 1, Table S2). The lowest fecal streptococci value was depicted in samples Nos. 1, 5, 11, 14, 17, and 28 (Fig. 5). Bacteriological results showed greater numbers of TBCs, TC, FC, and FS, reflecting the contamination of shallow groundwater with human and animal fecal content (Cabral, 2010; Stachler et al., 2017). Wastewater discharges are the predominant source of fecal microorganisms in the water samples (WHO, 2003). In general, bacterial and heavy metals results signify the extent of contamination of the shallow groundwater, making it unsafe for drinking and directly injecting into the underline Miocene aquifer. The injection of such polluted water represents a point source of the Miocene aquifer pollution. Thus, instead of water injection into the underline aquifer, it is more efficient to reuse this water after physical, chemical, and biological treatment.

Factors controlling water composition

The principal component analysis (PCA) results of the current study are presented in Table S3, comprising the factor loadings and eigenvalues of each principal cofactor. Four principal components (PCs) that explained 75.39% of the total variance were extracted. Thus, virtually the complete variance of the original data could be attributed to these 4 extracted components.

PC1 in PCA explains 39.37% of the total variance. It shows strong positive loading for TDS, EC, TH, Ca, Mg, Na, SO42–, Cl, NH4+, Cr, NO3¯, As, and Zn. These correlations explain the role of rock–water interaction in water chemistry; however, the appearance of NH4+ and NO3¯ indicated the role of wastewater seepage and agricultural practices, and so PC1 can be interpreted mixed factor. The weathering of rock-forming minerals (especially evaporates), which present in the lithology of the study area (Abdelbakey, 2014), increasing the salinity of the water. As well, the presence of As, Cr, and Zn was recorded in the rocks of the Eastern Desert (Sadek et al., 2015). Salman et al. (2019c) pointed out the contamination of orchard soil at Orabi farms within the study area with As and Cd. This PC is supported by the piper diagram results, which indicated the secondary salinity of water and the role of waterlogging and leaching of salts from the surface.

The PC2 explains 15.67% of the total data variance and mainly reflects the contributions of the anthropogenic factor on the water. Figure 6 shows that high values of NH4+, As, Fe, and Zn indicate the significant influence of the anthropogenic (leakage from industrial and domestic wastewater seepage and agricultural practices) on water chemistry. The absence of organic deposits in the study area pointed out the main source of NH4+ is the infiltration of nitrogen-rich water from surface activities (Norrman et al., 2015).

Fig. 6
figure 6

Principal component analysis (PCA) showing the relationship between principal components (PC-1 and PC-2) indicating the grouping of physicochemical parameters and trace elements measured in water samples

PC3 explains 12.22% of the total variance and is primarily associated with Pb, Cu, TC, FC, and FS. PC3 reflects the influence of wastewater seepage on the water because the main source of the pathogenic indicator is animal feces, whereas PC4, which is mainly chartered by pH and Cd, explains 8.14% of the total dataset variance. PC4 reflects the influence of geochemical processes, especially pH, on the concentration of Cd. At pH < 8, soluble complexes of Cd with inorganic are carbon formed and at pH ≥ 8 and precipitation of CdCO3 is favorable (Kubier et al., 2019).

Conclusively, the PCA stated the positive correlation between As and both NO3¯ and NH4+ in PC1 and PC2 that confirmed agricultural activities (fertilizers and pesticides) and leakage from industrial and domestic wastewaters could be significant sources of As in this area (El-Aassar et al., 2010).

Photocatalytic treatment of water

Selected representative samples were treated with nitrogen-doped titania suspension in the presence of visible light irradiation. As shown in Table 3, the bacteria were degraded completely within 60 min irradiation, as well as more than 82% of dissolved organic content was mineralized. Doping of nitrogen into nanocrystalline titania results in an extension of its light absorption properties into the visible region. Highly enhancement of the photocatalytic activity of nitrogen-doped titania may be attributed to red-shifted optical absorption edge, and lower optical bandgap compared to undoped titania. The excellent photoactivity of nitrogen-doped titania compared to the undoped one could be attributed to the contribution of nitrogen species on the decrement of titania band gab resulting in increment of titania photosensitivity in the visible region (Darwish et al., 2015). Thus, nitrogen-doped titania is a cheap as well as promising photocatalyst for many photocatalytic applications. Unfortunately, the used technique has a little effect on heavy metals and is considered ineffective for heavy metals removal (Table 3).

Table 3 Bacterial load, some heavy metals, and COD values before and after treatment

This technique has advantages over chlorine, the applied reagent for disinfection in the Egyptian drinking water stations due to its low cost. The chlorination process can produce many harmful disinfection by-products (DBPs) as a result of interaction with organic compounds in the water (Zhang et al., 2018b). The most widespread DBPs are trihalomethanes (THMs), such as chloroform that is carcinogenic (Murray et al., 2012). Furthermore, chlorine has limited efficacy against protozoan pathogens, which significantly causes diarrhea in children (Crider et al., 2018; Liu et al., 2016).

Conclusions

Groundwater at the study area contains acceptable levels of pH, Mg2+, K+, Cr, Cu, Mn, Fe, Zn, for drinking; nonetheless, As, Pb, Cd, TBC, TC, FC, and FS were above the permissible level. The studied samples were suitable for irrigation except for their arsenic contents and some samples (14%) with high SAR and MR. The PCA and cluster analyses pointed out mixed factors (rock–water interaction and anthropogenic activities) controlling groundwater quality in the study area. Wastewater seepage, industrial, and agricultural effluents runoff are the main anthropogenic sources of water pollution in the study area. The shallow groundwater origin is meteoric and of three main water types Na–Cl, Ca–Mg–Cl, and Ca(HCO3)2. The photocatalytic treatment of the polluted groundwater has shown high efficiency in removing approximately 95% and 82% of microbial pollutants and organic content. Ultimately, shallow groundwater injection into the underline Miocene aquifer is greatly hazardous and threatens the aquifer quality and must be ceased. It is recommended to reuse shallow groundwater for different purposes after the proposed photocatalytic treatment.