The cyano group usually cannot be introduced by nucleophilic substitution of haloarenes, but such compounds can be easily prepared from diazonium salts. Illustrative is the preparation of benzonitrile using the reagent cuprous cyanide:
This reaction is a special type of Sandmeyer reaction.