Organic compound that contains hydrogen and carbon. Hydrocarbons produce energy when burnt and are currently the world’s primary source of electrical energy and heating. The emissions produced by the combustion of petroleum in gasoline engines is understood to be a major source of greenhouse gas, and is contributory to global climate warming.