Formation
Coal begins as layers of plant matter accumulating at the bottom of a body of water. For the process to continue, the plant matter must be protected from biodegradation and oxidization, usually by mud or acidic water. This trapped atmospheric carbon in the ground in immense peat bogs that eventually were covered over and deeply buried by sediments under which they metamorphosed into coal. Over time, the chemical and physical properties of the plant remains were changed by geological action to create a solid material.
The wide shallow seas of the Carboniferous period provided ideal conditions for coal formation, although coal is known from most geological periods. The exception is the Coal gap in the Lower Triassic, where coal is incredibly rare: presumably a result of the mass extinction which prefaced this era. Coal is even known from Precambrian strata, which predate land plants: this coal is presumed to have originated from algal residues.
Coal, a fossil fuel, is the largest source of energy for the generation of electricity worldwide, as well as one of the largest worldwide anthropogenic sources of carbon dioxide releases. Gross carbon dioxide emissions from coal usage are slightly more than those from petroleum and about double the amount from natural gas. Coal is extracted from the ground by mining, either underground by shaft mining through the seams or in open pits.