Coal is a sedimentary rock formed from peat deposits that have been compressed and heated over time. It is composed primarily of carbon along with other elements. There are several types of coal defined by factors like carbon content, heat content, and physical properties. Peat forms at the surface from plant remains and deeper burial transforms it into lignite, then subbituminous coal, bituminous coal, and finally anthracite coal. Coal is mainly used for power generation and in steel production but emits pollutants that harm human health and contribute to global warming.