The aim of this present study was to evaluate groundwater quality in the upstream part of the Essaouira basin. A detailed geochemical study of groundwater region is described, and the origin of the chemical composition of groundwater has been qualitatively evaluated, using multivariate statistical methods (PCA, HCA), and Water Quality Index (WQI) was used to determine the suitability of water for drinking. To attempt this investigation, 38 samples were analysed for various physicochemical parameters such as temperature, pH, TDS, Na, NO 3 , K, Ca, HCO 3 , Cl, Mg, and SO 4. The results obtained showed that the facies characterizing the study area was a combination of Ca-SO 4 and mixed Ca-Mg-Cl. Hydrochemical approach based on the bivariate diagrams of major ions indicates that the origins of groundwater mineralization are the result of (I) evaporite dissolution; (II) cation-exchange reactions; and (III) evaporation processes. The WQI values range from 82.3 to 390.9, and therefore the water samples can be categorized into five groups: excellent water to water unsuitable for drinking. In global, 61% of the groundwater sampled had poor water quality, 18% were very poor water quality, 16% are unsuitable for drinking, and just 6% represent a good quality. However, the results of this paper indicate that most water is not safe for drinking and needs further treatment.