hydrocarbon any of a class of organic chemical compounds composed only of the elements carbon C and hydrogen h the carbon atoms join together to form the framework of the compound in the Hydrogen atoms attached to them many different configurations hydrocarbon of petroleum and natural gas they server as fuels and lubricants as well as raw materials for the production of plastic fibers rubbers solvents explosive and Industrial chemicals