Coal is a hard rock which can be burned as a fossil fuel. It is mostly carbon but also contains hydrogen, sulphur, oxygen and nitrogen. It is a sedimentary rock formed from peat, by the pressure of rocks laid down later on top.
Peat, and therefore coal, is formed from the remains of plants which lived millions of years ago in tropical wetlands (coal swamps), such as those of the late Carboniferous period (the Pennsylvanian). Charcoal is made by wood heated in an airless space.
Coal can be burned for energy or heat. About two-thirds of the coal mined today is burned in power stations to make electricity. Like oil, when coal is burned its carbon joins with oxygen in the air and makes a lot of carbon dioxide, which causes climate change. Many people die early because of illnesses from air pollution from coal. Most countries are turning to other sources of energy, such as solar power and wind power. But new coal power plants are still being built in some parts of the world, such as China.
Coal can be roasted (heated very hot in a place where there is no oxygen) to produce coke. Coke can be used in smelting to reduce metals from their ores.