What happens in the following reaction?
There is an electrophilic aromatic substitution
The substrate is a tertiary amine and in general, tertiary amines do not react with nitrous acid. This case is slightly different though.
The mixture of NaNO2andHCl gives HONO, which on protonation, yields the nitrosyl cation:
The nitrogen attached to the benzene – in this case – is highly activating owing to the presence of the lone pair of electrons, which conjugate into the ring. So, an electrophilic aromatic substitution reaction happens such that the major product (95% yield) is N,N-dimethyl-4-nitrosoaniline.