Groundwater is essential for both water supply and environmental conservation, especially in semi-arid and desert areas. Managing groundwater resources requires a thorough understanding of groundwater characteristics and dynamics. The hydrogeochemical properties and evolution of groundwater in the Essaouira synclinal basin in northwest Morocco were studied in this research, with 105 water samples collected in 2009, 2017, 2018, and 2019. The Water Quality Index (WQI) and Irrigation Water Quality Index (IWQI) were developed to determine groundwater quality for consumption and irrigation purposes. The chemical evolution of groundwater is mainly dominated by evaporite, mineral carbonate dissolutions, and cation exchange. Contamination by nitrates is particularly severe in agricultural and tourist areas. The WQI of the 2019 campaign showed that 6.7% of groundwater samples are unsuitable for drinking; 76.7% are poor quality water; and 13.3% are very poor-quality water; while only 3.3% are drinkable. According to IWQI, the total study area has been split into 50% (good), 43.3% (bad), and 6.6% (unfit), respectively, and no excellent groundwater areas have been identified. Therefore, the water is suitable for agriculture but must be treated for drinking. The presence of evaporation and maritime intrusion and the contribution of recent precipitations to aquifer recharging were demonstrated by stable isotope content.