Sedimentary rocks are formed when dead organisms are pressed together.