Groundwater is the major source to meet domestic, industrial and agricultural needs in the city of Dar es Salaam, Tanzania. However, population growth, increasing urbanization, industrialization and tourism, and climatic changes have caused an intensive exploitation of groundwater resources leading the aquifers become more vulnerable to seawater intrusion. The aim of this study is to examine the variations of groundwater chemistry (as resulting from natural and anthropogenic inputs) depending on seasonal changes, in order to evaluate water quality for drinking and irrigation purposes. Physical and chemical data come from the analysis of groundwater samples, collected from 72 wells, used for the evaluation of water quality parameters, during a year of monitoring. Pattern diagrams, geochemical modeling techniques and Principal Component Analysis (PCA) have been used to identify the main factors influencing groundwater composition. Based on the hydrochemistry, the groundwater was classified into three types: (a) Na–Cl, (b) Ca–Cl, (c) mixed Ca–Na–HCO3–Cl (d) mixed Ca–Mg–Cl–SO4. The geochemical modeling results show that groundwater chemistry is mainly influenced by evaporation process, as it is suggested by the increase of Na and Cl ions concentrations. According to irrigation water quality assessment diagrams of USDA, most water samples from dry and rainy seasons, distributed in category C2–S1, C3–S1, C3–S2, C4–S2 highlighting medium to very high salinity hazard and low to medium sodium content class. PCA evidenced the role of seawater intrusion, evaporation process and anthropogenic pollution (i.e. high NO3 levels due to agricultural activities), as the major factors that influenced the water chemistry, and hence the water quality. Based on Pearson correlation matrix, the presence of high correlations (>0.8) among Na, Cl, Mg and SO4, in association with EC, were interpreted as the seawater intrusion effects. In this area groundwater quality is generally low, and often exceeds permissible limits of standard guideline values of WHO and FAO, referred to EC and chloride values. The high salinity and the groundwater level depletion create serious problems for current use of water supplies as well as future exploitation.