Sedimentary rocks are types of rock that are formed by the deposition and subsequent cementation of that material at the Earth's surface and within bodies of water.