Millions of years ago, trees, plants, ferns and forests got buried below the rocks, soil and sand due to natural processes like flooding, earthquake, etc. Slowly, as more soil deposited over them, they were compressed. This led to the conditions of high pressure and heat. These conditions along with the anaerobic conditions turned the carbon-enriched organic matter of wood into coal. This slow process of conversion of wood into coal is called carbonisation.