The mechanically formed sedimentary rocks consist of mud, clay, sand, and gravel, together with their corresponding shales, slates, sandstones, and conglomerates, which have been produced by consolidation of the sediments. They are also at times changed, by a process of metamorphism, analogous to what takes place in the formation of granite, to schists, gneiss, or quartzite.