In geology, bedrock is the lithified rock that lies under a loose softer material called regolith at the surface of the Earth or other terrestrial planets. The broken and weathered regolith includes soil and subsoil. The surface of the bedrock beneath the soil cover is known as rockhead in engineering geology, and its identification by digging, drilling or geophysical methods is an important task in most civil engineering projects. Superficial deposits (also known as drift) can be extremely thick, such that the bedrock lies hundreds of meters below the surface.
Soil scientists use the capital letters O, A, B, C, and E to identify the master soil horizons, and lowercase letters for distinctions of these horizons. Most soils have three major horizons: the surface horizon (A), the subsoil (B), and the substratum (C). Some soils have an organic horizon (O) on the surface, but such a horizon can also be buried. The master horizon, E, is used for subsurface horizons that have a significant loss of minerals (eluviation). Hard bedrock, which is not soil, uses the letter R.