Such a rock was first formed through the deposition and solidification of sediment.
This sentence describes how sedimentary rocks are formed through the process of sediment accumulation and subsequent hardening.