When shelled marine organisms die, their shell fragments fall to the ocean floor and become compacted over time to form limestone. Organic matter from vegetation and decaying marine organisms is compacted over time, whether on land or in the sea, to form fossil fuel deposits.