Coal formed from dead vegetation that was buried during the Carboniferous period from 360-300 million years ago. Over millions of years, the dead plant matter was subjected to heat, pressure, and time underground, transforming it through various ranks from peat to lignite, sub-bituminous coal, bituminous coal, and finally anthracite coal with the highest carbon content. This coalification process occurred due to the vegetation being buried in an anaerobic environment without oxygen which allowed carbon rings to form.