Hydrogen fluoride (HF) is a covalent compound and has a very strong intermolecular hydrogen-bonding. Thus, it does not provide ions and aluminium fluoride (AlF) does not dissolve in it. Sodium fluoride (NaF) is an ionic compound and when it is added to the mixture, AlF dissolves. This is because of the availability of free F– . The reaction involved in the process is:

When boron trifluoride (BF3) is added to the solution, aluminium fluoride precipitates out of the solution. This happens because the tendency of boron to form complexes is much more than that of aluminium. Therefore, when BF3 is added to the solution, B replaces Al from the complexes according to the following reaction:
