Sedimentary rocks are derived from the weathering products of other rocks. These products are deposited in lakes or the ocean and form layers of sediment. Sedimentary rocks can range from the very finely-bedded limestones to coarsely-bedded and relatively unsorted sandstones.