When was coal formed?

Coal was formed about 250,000,000 years ago. Formation of coal began when plant debris accumulated in swamps, partially decomposing and forming “peat layers”. A rise in the sea level or land subsidence buried these layers below weight-compressed marine sediments, whose weight, compressed the peat transforming it under high-temperature conditions to coal. The greater the pressure, the harder the coal.