During rainfall, part of the rainwater gets absorbed into the soil. This water keeps flowing through the various layers of the soil till it reaches the hard rock. From here it is unable to go down further, therefore gets accumulated to form a reservoir. This reservoir of water is the underground water.