Coal is a hard rock which can be burned as a solid 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. 