Shale is a fine-grained detrital sedimentary rock formed by the compaction of clay, silt, or mud. Shale is formed when mud is pressed into rock over millions of years and often breaks into big flat pieces. Here layers of shale emerge from the sand and cliffs at Gaviota State Beach north of Santa Barbara.