Nitrile
A nitrile is any organic compound which has a -CN functional group.  The -CN functional group is called a nitrile group.  In the -CN group, the carbon atom and the nitrogen atom are triple bonded together.  The prefix cyano is used in chemical nomenclature to indicate the presence of a nitrile group in a molecule.  A cyanide ion is a negative ion with the formula CN.  The -CN group is sometimes, less properly, referred to as a cyanide group or cyano group and compounds with them are sometimes referred to as cyanides.
Nitriles sometimes release the highly toxic CN cyanide ion. See the article on cyanide for a discussion of biological effects and toxicity.

# History
Hydrogen cyanide was first synthesized by K.W. Scheele in 1782 and he was killed in an attempt to get the anhydrous compound . J. L. Gay-Lussac was the first to prepare the pure acid in 1811 and Friedrich Wohler and Justus von Liebig were the first to prepare the first nitriles benzoyl cyanide and benzonitrile in 1832. Theophile-Jules Pelouze synthesized propionitrile in 1834.

# Synthesis of nitriles
Nitriles can be prepared in organic synthesis by the following methods:
- Nucleophilic aliphatic substitution reactions of alkyl halides with metal cyanides.
- dehydration of primary amides. Many reagents are available, the combination of ethyl dichlorophosphate and DBU just one of them in this conversion of benzamide to benzonitrile:
- dehydration of secondary amides (von Braun amide degradation)
- dehydration of aldoximes with triethylamine/sulfur dioxide, zeolites, or sulfuryl chloride
- One-pot synthesis of aldehyde with hydroxylamine and sodium sulfate.
- reaction of metal cyanides with aldehydes in the cyanohydrin reaction
- from aryl carboxylic acids (Letts nitrile synthesis)
- aromatic nitriles from diazonium compounds in the Sandmeyer reaction
- from alkenes and alkynes in hydrocyanation
- A commercial source for the cyanide group is diethylaluminum cyanide Et2AlCN which can be prepared from triethylaluminium and HCN . It has been used in nucleophilic addition to ketones. For an example of its use see: Kuwajima Taxol total synthesis
- cyanide ions facilitate the coupling of dibromides. Reaction of ,'-dibromo adipic acid with sodium cyanide in ethanol yields the cyano cyclobutane:

# Reactions of nitriles
Nitrile groups in organic compounds can undergo various reactions when subject to certain reactants or conditions.  A nitrile group can be hydrolyzed, reduced, or ejected from a molecule as a cyanide ion.
- In hydrolysis the nitrile is reacted with an acid and water at a high temperature, or with a base and water. The acid hydrolysis forms a carboxylic acid, the alkali hydrolysis forms a carboxylate.
- In organic reduction the nitrile is reduced by reacting it with hydrogen with a nickel catalyst; an amine is formed in this reaction. Reduction to the imine followed by hydrolysis to the aldehyde takes place in the Stephen aldehyde synthesis
- A nitrile is an electrophile at the carbon atom in a nucleophilic addition reactions:
with an organozinc compound in the Blaise reaction
and with alcohols in the Pinner reaction.
likewise, the reaction of the amine sarcosine with cyanamide yields creatine  
- with an organozinc compound in the Blaise reaction
- and with alcohols in the Pinner reaction.
- likewise, the reaction of the amine sarcosine with cyanamide yields creatine  
- In reductive decyanation the nitrile group is replaced by a proton . An effective decyanation is by a dissolving metal reduction with HMPA and potassium metal in tert-butyl alcohol. -Amino-nitriles can be decyanated with lithium aluminium hydride.
- Nitriles self-react in presence of base in the Thorpe reaction in a nucleophilic addition
- In organometallic chemistry nitriles are known to add to alkynes in carbocyanation: