hydrocarbons In chemistry, the group of substances that consists only of carbon and hydrogen is called hydrocarbons. They are mainly found in fossil fuels. The molecular formula is CmHn.