Mesas form by weathering and erosion of horizontally layered rocks that have been uplifted by tectonic activity. Variations in the ability of different types of rock to resist weathering and erosion cause the weaker types of rocks to be eroded away, leaving the more resistant types of rocks topographically higher than their surroundings. This process is called differential erosion. The most resistant rock types include sandstone, conglomerate, quartzite, basalt, chert, limestone, lava flows and sills. Lava flows and sills, in particular, are very resistant to weathering and erosion, and often form the flat top, or caprock, of a mesa. The less resistant rock layers are mainly made up of shale, a softer rock that weathers and erodes more easily.