Gabriel Phthalimide Synthesis
You want to make a primary amine — a molecule where an alkyl group is attached to an NH2 group. The obvious route is to react an alkyl halide with ammonia. That gives you a mixture: some primary amine, some secondary amine (two alkyl groups on the nitrogen), some tertiary amine, and even some quaternary ammonium salt. Ammonia is a nucleophile, but once it reacts, the product (the primary amine) is an even better nucleophile than ammonia was. So it keeps attacking more alkyl halide molecules, and you lose control.
The Gabriel synthesis is a clever way to stop that chain reaction. It works by hiding the nitrogen inside a molecule that cannot act as a nucleophile until you want it to.
The intuition
Imagine you have a nitrogen atom that you want to attach exactly one alkyl group to, and then release it as a primary amine. If you put that nitrogen inside a structure that is already "full" — where it has no hydrogen atoms left to be replaced — then it cannot react with more than one alkyl halide molecule. That is the core idea.
Potassium phthalimide is that structure. Phthalimide itself has the formula C6H4(CO)2NH. The nitrogen is flanked by two carbonyl groups, which pull electron density away from it. When you treat phthalimide with a base (usually alcoholic KOH), the N−H bond is deprotonated, giving the potassium salt:
C6H4(CO)2NH+KOH→C6H4(CO)2N−K++H2O
This anion is a good nucleophile. It attacks an alkyl halide (R−X) in an SN2 reaction, giving N-alkylphthalimide:
C6H4(CO)2N−K++R−X→C6H4(CO)2N−R+KX
Now look at that product. The nitrogen already has three bonds: two to the carbonyl carbons and one to the alkyl group. It has no hydrogen left. It cannot react with a second alkyl halide molecule. The secondary and tertiary amine contamination is impossible at this stage.
This is an SN2 reaction. It works well with primary alkyl halides. Secondary alkyl halides give poor yields due to steric hindrance and elimination side reactions. Tertiary alkyl halides are useless here — they eliminate instead of substituting.
Releasing the amine
You now have the alkyl group attached to the phthalimide nitrogen. To get the free primary amine, you need to break the two N−C(=O) bonds. This is done by hydrolysis — either acidic or basic.
Alkaline hydrolysis (reflux with aqueous or alcoholic KOH):
C6H4(CO)2N−R+2KOH→C6H4(COOK)2+RNH2
The products are potassium phthalate and the primary amine. The amine is liberated as a free base and can be distilled out or extracted.
Acidic hydrolysis (reflux with concentrated HCl):
C6H4(CO)2N−R+2H2O+HCl→C6H4(COOH)2+RNH3+Cl−
Here you get phthalic acid and the amine hydrochloride salt. You then treat the salt with a base to free the amine.
A modern alternative to hydrolysis is the Ing-Manske procedure: treat the N-alkylphthalimide with hydrazine (NH2NH2). This gives phthalhydrazide and the free amine in one step, under milder conditions. The reaction is:
C6H4(CO)2N−R+NH2NH2→C6H4(CO)2(NH)2+RNH2
The precise statement …