Coal, oil and gas are the three fossil fuels ... were buried under layers of earth and sand that slowly became sedimentary rock. Over millions of years, the dead plants and animals were compressed ...