Caprock or cap rock is a hard, resistant, and impermeable layer of rock that overlies and protects a reservoir of softer organic material, similar to the crust on a pie where the crust (caprock) prevents leakage of the soft filling (softer material). Caprocks consist of erosion-resistant rocks like sandstone, limestone, basalt, and evaporites that form landforms like mesas and buttes through differential erosion. It influences hydrology by creating waterfalls and aquifers, while also trapping hydrocarbons in petroleum reservoirs.