The diazonium group can be replaced by fluorine by treating the diazonium salt with fluoroboric acid (HBF4​). The precipitated diazonium fluoroborate is isolated, dried and heated until decomposition occurs to yield the aryl fluoride. This reaction is known as Balz-Schiemann reaction.