Detrital sedimentary rocks are mainly classified by the size of their grain. The largest grain is a boulder, followed by a cobble, a pebble, sand, silt and finally the finest grain, which is clay. These grains of sediments are what get cemented together to form sedimentary rocks.