Coal was formed by the dead remains of the plants by the process of carbonisation. Millions of years ago, dead flora and fauna in forests got buried under soil, rocks and other land masses due to earthquakes, volcanic eruptions and floods. With the passage of time, more soil layers got deposited on it and they were compressed and went deeper and deeper beneath the earth. This raised the temperature and pressure beneath the soil. This initiated the process of burning these dead remains. Slowly, all the vegetation got converted into coal, which is a rich form of carbon.