Sedimentary rocks are formed from eroded fragments of other rocks or even from the remains of plants or animals.The fragments accumulate in low-lying areasâlakes, oceans, and desertsâand then are compressed back into rock by the weight of overlying materials.edimentary rocks are formed from eroded fragments of other rocks or even from the remains of plants or animals.