Aluminium trifluoride is insoluble in anhydrous HF but dissolves on addition of NaF. Aluminium trifluoride precipitates out of the resulting solution when gaseous $B{F}_{3}$ is bubbled through. Give reasons.

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 ($B{F}_{3}$) 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:

$N{a}_{3}\left[AI{F}_{6}\right]+3B{F}_{3}\to 3Na\left[B{F}_{4}\right]+AI{F}_{3}$