-When sediment is washed up a lake, river, or ocean layers get deposited to the bottom. -Layers and layers of sediment gather until the weight of each layer form a rock. -Each layer of sediment is squeezed together by the weight this process is called compaction.