Sedimentary rocks form through the accumulation and lithification of sediments. Sediments are produced through the weathering and erosion of existing rocks. Once transported, sediments are deposited in layers and compacted over time into sedimentary rock. Sedimentary rocks can be classified based on their composition (e.g. siliciclastic rocks like sandstone form from clastic particles) and texture (e.g. grain size, sorting, rounding influence the rock type). Sedimentary structures provide clues about the depositional environment.