Rainwater and water from other sources like rivers, ponds, etc . are sources of groundwater.
The rainwater and water from other sources such as rivers and ponds seeps through the soil and fill the empty spaces and cracks deep below the ground. The process of seeping water into the ground is called infiltration. The groundwater thus gets recharged by this process.