When sedimentary rock is washed up on a lake or river the layers of the rock get deposited to the bottom. Layers and layers of rock gather until all of the weight of each layer form into a rock. Each layer of sediment is squeezed by the weight above it.