How are organic rocks formed?

forms from dead plants and animals that compress deep in the Earth's crust over millions of years.