Coal tar is derived from coal. It is a byproduct of the production of coke, a solid fuel that contains mostly carbon, and coal gas. Coal tar is used primarily for the production of refined chemicals and coal-tar products, such as creosote and coal-tar pitch. Certain preparations of coal tar have long been used to treat various skin conditions, such as eczema, psoriasis, and dandruff.