Coal was formed by the decomposition of large land plants and trees buried under the earth millions of years ago. It is believed that millions of years ago, due to earthquakes and volcanoes, etc., the forests were buried under the surface of the earth and got covered with sand, clay and water. Due to high temperature and high pressure inside the earth, and in the absence of air, wood was converted into coal.