Coal tar is a by-product of the coal production process that is used in some hair dyes and cosmetics. It is known to be carcinogenic and can sometimes be contaminated with toxic heavy metals.