An aquifer is an underground layer of permeable rock or sediment that contains water. Aquifers can be confined or unconfined. A confined aquifer is separated from the surface by an impermeable layer, while an unconfined aquifer allows water to seep directly from the surface above. Natural recharge of unconfined aquifers occurs through downward percolation of excess water, while confined aquifers recharge where the aquifer reaches the surface. Infiltration galleries are underground tunnels constructed with holes to intercept groundwater flowing towards lakes or rivers and collect it for extraction.