Groundwater contamination occurs when pollutants enter underground water resources and affect water quality.