The amino group is a strong activator, orienting to ortho/para. However, in acid media it is protonated, transforming into a strong deactivator (ammonium salt) that orients to the meta position.
Protonation of the amino can be avoided by protecting it with ethanoyl chloride in pyridine.
 
Aniline nitration without amino protection
 
protección del grupo amino
 
Nitration of aniline with protection of the amino group, using ethanoyl chloride
protección del grupo amino
 
Amino protection can be done with ethanoic anhydride in pyridine, or with ethanoyl chloride in pyridine.
 
protección del grupo amino
 
The final product is an amide, much less basic than the starting amine and less prone to protonation. The mechanism of the reaction is as follows:
 
Stage 1. Addition
 
protección del grupo amino
 
Stage 2. Acid-base balance
 
protección del grupo amino
 
Stage 3. Elimination
 
proteccion-amino06
 
The amide formed is deprotected by acid or basic hydrolysis, leaving the aniline free.
 
proteccion-amino
 
Deprotection mechanism in basic medium.
 
Step 1. Addition of the hydroxyl group to the amide
 
proteccion-amino
 
Stage 2. Elimination
 
proteccion-amino
 
Stage 3. Acid-base balance
proteccion-amino