This study addresses groundwater quality in Madurai block by examining heavy metal contamination and its potential health risks. Being the second largest city after Chennai, Madurai’s groundwater quality has not been analyzed for heavy metal contamination so far. In 2022, groundwater samples were taken from 60 wells in the pre- and post-monsoon seasons. The heavy metal concentrations of Cu, Cr, Cd, Co, Fe, Mn, Ni and Zn were measured. The results showed that most of the groundwater samples exceeded the (World Health Organisation (2019) World health statistics overview: Monitoring health for the sustainable development goals), (Bureau of Indian Standards (2012) Drinking water specifications) and (USEPA (2018) National primary drinking water regulations (EPA 816-F-09–004)) limits for drinking water. A spatial analysis using kriging interpolation in GIS and a multivariate statistical analysis were performed to decipher the interrelationships of the metals. The results indicate different sources of heavy metals, primarily caused by weathering and evaporation in both seasons. Pollution indices such as HPI, HEI and DOC were used to comprehensively assess the extent of metal pollution in groundwater. The Hazard Quotient and Hazard Index emphasized the significant health risks to infants, children and adults. To improve the quality of groundwater, this region needs to adopt sustainable and environmentally friendly water management strategies, such as rainwater harvesting, wastewater treatment and strict pollution control measures.