Groundwater is located in the spaces between soil and rocks what is the original source of groundwater

The original source of groundwater is precipitation, such as rain or snowfall. When it rains, the water infiltrates the ground and percolates through the soil and rocks, eventually accumulating in the spaces between them, forming groundwater.