A substance made of only hydrogen and carbon. Examples of hydrocarbons are coal, petroleum, natural gas and tar. They are used as energy sources. Being exposed to hydrocarbons may increase the risk of certain types of cancer.