The southern slopes of the Mendip Hills largely follow the flanks of an anticline, a fold in the rock that is convex upwards and has its oldest beds at its core. On the Mendips the crest of the anticline is truncated by erosion, forming a plateau. The rock strata here dip 10–15 degrees to the southwest. The outer slopes are mainly of Carboniferous Limestone, with Devonian age Old Red Sandstone exposed as an inlier at the centre. Wookey Hole is a solutional cave mainly formed in the limestone by chemical weathering whereby naturally acidic groundwater dissolves the carbonate rocks, but it is unique in that the first part of the cave is formed in Triassic Dolomitic Conglomerate, a well-cemented fossil limestone scree representing the infill of a Triassic valley.