Primary amines can be exclusively formed by ammonolysis of alkyl halides.
3Ammonolysis of alkyl halides followed by the treatment with NaOH solution can be used to prepare primary, secondary and tertiary amines. The purpose of NaOH in the reaction is: