This study used the groundwater quality index (GWQI) and Geographic Information System (GIS) techniques to examine groundwater quality in the western coastal region of Sri Lanka. The spatial and temporal variation of 18 groundwater samples' physiochemical parameters [pH, electrical conductivity (EC), turbidity, total dissolved solids (TDS), sodium (Na+), potassium (K+), calcium (Ca2+), magnesium (Mg2+), chloride (Cl−), and bicarbonate (HCO3−)] were studied. According to the WHO and SLS, 11% of samples had EC levels that were above the acceptable range, and 22% had turbidity levels that were beyond the acceptable range. When considering, pH, TDS, other cations, and anions analyzed in the study were still below the standard permissible levels. The western coastline region, as well as several areas of the central study region, had significant concentrations of physicochemical parameters. According to the GWQI, water was consumable in 77.78% of locations in the study region and unsatisfactory in 22.22%. Furthermore, due to severe coastal erosion, the quality of groundwater in the study region is deteriorating, therefore maintaining a comprehensive groundwater management strategy to promote sustainable water consumption is imperative.