Hydrocarbons are organic chemical compounds that are made up of only carbon and hydrogen and occur naturally in fossil fuels such as petroleum and coal. Within the hydrocarbon family of compounds there are four different classes: alkanes, alkenes, alkynes and aromatic.