The southern and western parts of the Pentland Hills are formed from sandstones together with some conglomerates, all of Devonian age and assigned to the Old Red Sandstone. Within the sedimentary sequence are extrusive igneous rocks, principally of basaltic and andesitic composition. The sedimentary rocks are also intruded by dykes of porphyrite.