Carbonyl Addition
Amines are good nucleophiles. We've already seen how they might attack a compound with a good leaving group. Amines may also attack a carbonyl group whose carbon is electron-deficient. The product of the reaction is an imine with a C=N double bond.
What is the reaction mechanism? Seeing it in motion is very instructive, but it may be rather complex to follow.
The mechanism of the formation of an imine through the attack of an amine to a carbonyl is named addition-elimination.
Let's break it down into its different steps.
Step 1: Protonation of the carbonyl and attack by N
Acid catalysis produces the protonation of some ketone molecules. These few protonated ketones have their carbon electrophilicity enhanced. The nucleophilic addition of the amine nitrogen is thus highly facilitated. The former carbonyl carbon changes from planar sp2 to tetrahedral sp3.
Step 2: Proton transfer
The protonated tetrahedral intermediates give up one proton to the amine molecules that didn't react yet, producing a geminal amino alcohol or carbinolamine (geminal = both functions bonded to the same carbon), an intermediate that is not usually isolated.
Step 3: Protonation of the OH
Part of the aminoalcohol molecules undergo protonation on the OH, which is weakly basic, leading to an intermediate with an excellent leaving group: water.
Step 4: Loss of water
The weakened C-O bond, due to the protonation, heterolytically breaks up leading to an intermediate iminium ion. The former carbonyl carbon, that changed from sp2 to sp3, recovers the sp2 hybridization.
Step 5: Final deprotonation
The excess of amine deprotonates the iminium salt, yielding the final imine.
Unfortunately, the overall reaction is not thermodynamically favored in many cases. Therefore, it is necessary to shift all the equilibria by removing the produced water with either a drying agent (molecular sieves, etc.) or a Dean-Stark apparatus.