Rock formed from sediments deposited by running water, wind, or wave action either in water bodies or on land and which have been consolidated into rock. The main classes are sandstone, shale (formed principally of clay), and limestone, including the pure limestone called chalk.