Coal is a combustible black or brownish-black sedimentary rock usually occurring in rock strata in layers or veins called coal beds or coal seams. The harder forms, such as anthracite coal, can be regarded as metamorphic rock because of later exposure to elevated temperature and pressure. Coal is composed primarily of carbon along with variable quantities of other elements, chiefly hydrogen, sulfur, oxygen, and nitrogen.
coal has been used as an energy resource, primarily burned for the production of electricity and/or heat, and is also used for industrial purposes, such as refining metals. A fossil fuel, coal forms when dead plant matter is converted into peat, which in turn is converted into lignite, then sub-bituminous coal, after that bituminous coal, and lastly anthracite
Coal is extracted from the ground by coal mining, either underground by shaft mining, or at ground level by open pit mining extraction.