In geology, bedrock is solid rock that lies under loose material within the crust of Earth or another terrestrial planet.