There are four main types of coal defined by their carbon content and heat value: anthracite, bituminous, subbituminous, and lignite. Coal is extracted through surface mining methods like strip mining, open-pit mining, and mountaintop removal mining, or through underground mining. After mining, coal is shipped by train or barge to power plants where it is pulverized and burned to produce electricity. Thermal decomposition of coal is a complex process that occurs in stages as temperature increases and involves the evolution of volatile matter and gases through physical and chemical changes to the coal substance.