Sedimentary rock is made when layers of sand, shells, bones, pebbles and other materials settle down in oceans, rivers or lakes over a long period of time. Over millions of years, the layers of sediment build up and the pressure pushes the grains together with such force that it turns into rock.