Tar made from coal or petroleum is considered toxic .
Mineral products resembling tar can be produced from fossil hydrocarbons including petroleum . Coal tar is produced from coal as a byproduct of coke production .