Coal
During Carboniferous period much of world was covered with vegetation growing in swamps. This vegetation died and became submerged under water. As decomposition took place, vegetable matter lost oxygen and hydrogen atoms, leaving a peat deposit with a high percentage of carbon. As time passed, layers of sand and mud settled from water over some of peat deposits. Pressure of these overlying layers, as well as movements of earth's crust and sometimes volcanic heat, acted to compress and harden deposits, thus producing coal.