Builders will often add sand to the soil of a foundation and compact it in order to create a more stable soil for building on. Bedrock Bedrock, or a solid underlying layer of rock beneath shallow topsoil, is an ideal foundation for a home because it is impermeable to water runoff and will not change shape and size in the presence of water.