Hydrocarbon
In organic chemistry, a hydrocarbon is an organic compound consisting entirely of hydrogen and carbon. Hydrocarbons are examples of group 14 hydrides. Hydrocarbons are generally colourless and hydrophobic; their odor is usually faint, and may be similar to that of gasoline or lighter fluid. They occur in a diverse range of molecular structures and phases: they can be gases (such as methane and propane), liquids (such as hexane and benzene), low melting solids (such as paraffin wax and naphthalene) or polymers (such as polyethylene and polystyrene). 

In the fossil fuel industries, hydrocarbon refers to naturally occurring petroleum, natural gas and coal, or their hydrocarbon derivatives and purified forms. Combustion of hydrocarbons is the main source of the world's energy. Petroleum is the dominant raw-material source for organic commodity chemicals such as solvents and polymers. Most anthropogenic (human-generated) emissions of greenhouse gases are either carbon dioxide released by the burning of fossil fuels, or methane released from the handling of natural gas or from agriculture.

Types
As defined by the International Union of Pure and Applied Chemistry's nomenclature of organic chemistry, hydrocarbons are classified as follows:
 Saturated hydrocarbons, which are the simplest of the hydrocarbon types. They are composed entirely of single bonds and are saturated with hydrogen. The formula for acyclic saturated hydrocarbons (i.e., alkanes) is CH. The most general form of saturated hydrocarbons, (whether linear or branched species, and whether with without one or more rings) is CH, where r is the number of rings. Those with exactly one ring are the cycloalkanes. Saturated hydrocarbons are the basis of petroleum fuels and may be either linear or branched species. One or more of the hydrogen atoms can be replaced with other atoms, for example chlorine or another halogen: this is called a substitution reaction. An example is the conversion of methane to chloroform using a chlorination reaction. Note that halogenating a hydrocarbon produces something that is not a hydrocarbon. It is a very common and useful process. Hydrocarbons with the same molecular formula but different structural formulae are called structural isomers. As given in the example of 3-methylhexane and its higher homologues, branched hydrocarbons can be chiral. Chiral saturated hydrocarbons constitute the side chains of biomolecules such as chlorophyll and tocopherol.
 Unsaturated hydrocarbons, which have one or more double or triple bonds between carbon atoms. Those with one or more double bonds are called alkenes. Those with one double bond have the formula CH (assuming non-cyclic structures). Those containing triple bonds are called alkyne. Those with one triple bond have the formula CH.
 Aromatic hydrocarbons, also known as arenes, which are hydrocarbons that have at least one aromatic ring. 10% of total nonmethane organic carbon emission are aromatic hydrocarbons from the exhaust of gasoline-powered vehicles.

The term 'aliphatic' refers to non-aromatic hydrocarbons. Saturated aliphatic hydrocarbons are sometimes referred to as 'paraffins'. Aliphatic hydrocarbons containing a double bond between carbon atoms are sometimes referred to as 'olefins'.

Usage

The predominant use of hydrocarbons is as a combustible fuel source. Methane is the predominant component of natural gas. The C6 through C10 alkanes, alkenes and isomeric cycloalkanes are the top components of gasoline, naphtha, jet fuel and specialized industrial solvent mixtures. With the progressive addition of carbon units, the simple non-ring structured hydrocarbons have higher viscosities, lubricating indices, boiling points, solidification temperatures, and deeper color. At the opposite extreme from methane lie the heavy tars that remain as the lowest fraction in a crude oil refining retort. They are collected and widely utilized as roofing compounds, pavement composition (bitumen), wood preservatives (the creosote series) and as extremely high viscosity shear-resisting liquids.

Some large-scale non-fuel applications of hydrocarbons begins with ethane and propane, which are obtained from petroleum and natural gas.  These two gases are converted either to syngas or to ethylene and propylene. Global consumption of benzene in 2021 is estimated at more than 58 million metric tons, which will increase to 60 million tons in 2022.

Hydrocarbons are also prevalent in nature. Some eusocial arthropods, such as the Brazilian stingless bee, Schwarziana quadripunctata, use unique cuticular hydrocarbon "scents" in order to determine kin from non-kin. This hydrocarbon composition varies between age, sex, nest location, and hierarchal position.

There is also potential to harvest hydrocarbons from plants like Euphorbia lathyris and E. tirucalli as an alternative and renewable energy source for vehicles that use diesel. Furthermore, endophytic bacteria from plants that naturally produce hydrocarbons have been used in hydrocarbon degradation in attempts to deplete hydrocarbon concentration in polluted soils.

Reactions
The noteworthy feature of saturated hydrocarbons is their inertness. Unsaturated hydrocarbons (alkanes, alkenes and aromatic compounds) react more readily, by means of substitution, addition, polymerization. At higher temperatures they undergo dehydrogenation, oxidation and combustion.

Substitution

Of the classes of hydrocarbons, aromatic compounds uniquely (or nearly so) undergo substitution reactions. The chemical process practiced on the largest scale is the reaction of benzene and ethene to give ethylbenzene:

The resulting ethylbenzene is dehydrogenated to styrene and then polymerized to manufacture polystyrene, a common thermoplastic material.

Free-radical substitution

Substitution reactions occur also in saturated hydrocarbons (all single carbon–carbon bonds). Such reactions require highly reactive reagents, such as chlorine and fluorine. In the case of chlorination, one of the chlorine atoms replaces a hydrogen atom.  The reactions proceed via  free-radical pathways, in which the halogen first dissociates into a two neutral radical atoms (homolytic fission).
CH + Cl → CHCl + HCl
CHCl + Cl → CHCl + HCl
all the way to CCl (carbon tetrachloride)

CH + Cl → CHCl + HCl
CHCl + Cl → CHCl + HCl
all the way to CCl (hexachloroethane)

Addition

Addition reactions apply to alkenes and alkynes. In this reaction a variety of reagents add "across" the pi-bond(s).  Chlorine, hydrogen chloride, water, and hydrogen are illustrative reagents.

Addition polymerization

Alkenes and some alkynes also undergo polymerization by opening of the multiple bonds to produce polyethylene, polybutylene, and polystyrene. The alkyne acetylene polymerizes to produce polyacetylene. Oligomers (chains of a few monomers) may be produced, for example in the Shell higher olefin process, where α-olefins are extended to make longer α-olefins by adding ethylene repeatedly.

Hydrogenation

Metathesis
Some  hydrocarbons undergo metathesis, in which substituents attached by C–C bonds are exchanged between molecules. For a single C–C bond it is alkane metathesis, for a double C–C bond it is alkene metathesis (olefin metathesis), and for a triple C–C bond it is alkyne metathesis.

High-temperature reactions

Cracking

Dehydrogenation

Pyrolysis

Combustion

Combustion of hydrocarbons is currently the main source of the world's energy for electric power generation, heating (such as home heating) and transportation. Often this energy is used directly as heat such as in home heaters, which use either petroleum or natural gas. The hydrocarbon is burnt and the heat is used to heat water, which is then circulated. A similar principle is used to create electrical energy in power plants.

Common properties of hydrocarbons are the facts that they produce steam, carbon dioxide and heat during combustion and that oxygen is required for combustion to take place.  The simplest hydrocarbon, methane, burns as follows:

CH + 2 O → 2 HO + CO + energy

In inadequate supply of air, carbon monoxide gas and water vapour are formed:
2 CH + 3 O → 2 CO + 4 HO

Another example is the combustion of propane:
CH + 5 O → 4 HO + 3 CO + energy

And finally, for any linear alkane of n carbon atoms,
CH +  O → (n + 1) HO + n CO + energy.

Partial oxidation characterizes the reactions of alkenes and oxygen. This process is the basis of rancidification and paint drying.

Origin

The vast majority of hydrocarbons found on Earth occur in crude oil, petroleum, coal, and natural gas.  Petroleum (literally "rock oil") and coal are generally thought to be products of decomposition of organic matter.  Coal, in contrast to petroleum, is richer in carbon and poorer in hydrogen. Natural gas is the product of methanogenesis.

A seemingly limitless variety of compounds comprise petroleum, hence the necessity of refineries. These hydrocarbons consist of saturated hydrocarbons, aromatic hydrocarbons, or combinations of the two.  Missing in petroleum are alkenes and alkynes.  Their production requires refineries. Petroleum-derived hydrocarbons are mainly consumed for fuel, but they are also the source of virtually all synthetic organic compounds, including plastics and pharmaceuticals.  Natural gas is consumed almost exclusively as fuel. Coal is used as a fuel and as a reducing agent in metallurgy.

A small fraction of hydrocarbon found on earth, and all currently known hydrocarbon found on other planets and moons, is thought to be abiological.

Hydrocarbons such as ethylene, isoprene, and monoterpenes are emitted by living vegetation.

Some hydrocarbons also are widespread and abundant in the Solar System. Lakes of liquid methane and ethane have been found on Titan, Saturn's largest moon, as confirmed by the Cassini–Huygens space probe. Hydrocarbons are also abundant in nebulae forming polycyclic aromatic hydrocarbon compounds.

Environmental impact
Burning hydrocarbons as fuel, which produces carbon dioxide and water, is a major contributor to anthropogenic global warming.
Hydrocarbons are introduced into the environment through their extensive use as fuels and chemicals as well as through leaks or accidental spills during exploration, production, refining, or transport of fossil fuels. Anthropogenic hydrocarbon contamination of soil is a serious global issue due to contaminant persistence and the negative impact on human health.

When soil is contaminated by hydrocarbons, it can have a significant impact on its microbiological, chemical, and physical properties. This can serve to prevent, slow down or even accelerate the growth of vegetation depending on the exact changes that occur. Crude oil and natural gas are the two largest sources of hydrocarbon contamination of soil.

Bioremediation
Bioremediation of hydrocarbon from soil or water contaminated is a formidable challenge because of the chemical inertness that characterize hydrocarbons (hence they survived millions of years in the source rock).  Nonetheless, many strategies have been devised, bioremediation being prominent.  The basic problem with bioremediation is the paucity of enzymes that act on them. Nonetheless the area has received regular attention.
Bacteria in the gabbroic layer of the ocean's crust can degrade hydrocarbons; but the extreme environment makes research difficult. Other bacteria such as Lutibacterium anuloederans can also degrade hydrocarbons.
Mycoremediation or breaking down of hydrocarbon by mycelium and mushrooms is possible.

Safety

Hydrocarbons are generally of low toxicity, hence the widespread use of gasoline and related volatile products.  Aromatic compounds such as benzene and toluene are narcotic and chronic toxins, and benzene in particular is known to be carcinogenic.  Certain rare polycyclic aromatic compounds are carcinogenic.
Hydrocarbons are highly flammable.

See also

 Abiogenic petroleum origin
 Biomass to liquid
 Carbohydrate
 Energy storage
 Fractional distillation
 Functional group
 Hydrocarbon mixtures
 Organic nuclear reactor

References

External links
 The Methane Molecule
 Encyclopedia of Hydrocarbons