The first compound of the homolog row of nitriles, the nitrile of formic acid, hydrogen cyanide was first synthesized by C. W. Scheele in 1782. In 1811 J. L. Gay-Lussac was able to prepare the very toxic and volatile pure acid. 
Around 1832 benzonitrile, the nitrile of benzoic acid, was prepared by Friedrich Wöhler and Justus von Liebig, but due to minimal yield of the synthesis neither physical nor chemical properties were determined nor a structure suggested. In 1834 Théophile-Jules Pelouze synthesized propionitrile, suggesting it to be an ether of propionic alcohol and hydrocyanic acid.
The synthesis of benzonitrile by Hermann Fehling in 1844 by heating ammonium benzoate was the first method yielding enough of the substance for chemical research. 
Fehling determined the structure by comparing his results to the already known synthesis of hydrogen cyanide by heating ammonium formate. He coined the name "nitrile" for the newfound substance, which became the name for this group of compounds.