Sedimentary rocks are formed by the lithification of sediments and include clastic rocks from weathered rock fragments, chemical rocks from mineral precipitation, and organic rocks from accumulated biological matter. Sedimentary rocks provide clues to past environments through their composition and structures, and often contain fossils that reveal the history of life. Important resources like coal and oil are found within sedimentary layers.