# What is the reaction priority when methyl 2-(chloromethyl)benzoate reacts with potassium cyanide?

I was going through some PYQ'S of JEE Advanced where I encountered this question.

I was not able to decide whether I should go for an SN2 reaction to substitute $$\ce{-Cl}$$ or a nucleophilic attack on the ester.

The solution provided by a reputed coaching center says that we should prefer the nucleophilic attack on the ester but I don't understand why.

What is the reason for this?

• @Waylander I tried using that but in the end product that I am getting I have 2-hydroxy ethanoic acid instead of carboxylic acid (cooh) grp . It would be of great help if you could elaborate on what you said.Thanks
– okk
Aug 23 at 9:01
• If you run the first step of the reaction with 2 or more eq of KCN both sites will react. The benzyl chloride will give the phenyl acetonitrile and the ester will give the acyl cyanide. The acid hydrolysis which follows convert the phenylacetonitrile to the carboxylic acid and the acyl cyanide will hydrolyse to the carboxylic acid. If you run reaction 1 with 1 eq of KCN then you get attack at the benzyl chloride. Aug 23 at 9:12
• @Waylander "" the acyl cyanide will hydrolyse to the carboxylic acid. "",,I am not geting this part ,I was confused as how to hydrolyze this but then I found "pubs.rsc.org/en/content/articlelanding/1967/j2/…." in which it says that it would hydrolyze to acetic acid but according to the solution I shoul be getting carboxylic acid. Please look into this.
– okk
Aug 23 at 9:25
• It depends on the conditions of hydrolysis. Acyl cyanides under strong acid conditions will give the alpha keto acid. Under mild basic conditions they lose cyanide to give the carboxylic acid as they are acylating agents. Aug 23 at 9:46
• @Waylander I now undersand the reaction if KCN is in excess but I fail to understand why would benzyl chloride would be attacked if KCN is 1 eq. is it beacuse of the electronic factors mentioned in the answer below or is there anything else?
– okk
Aug 23 at 9:49

I would prefer to go along with $$\mathrm{S_N2}$$ because the benzylic carbon is much more electron deficient than the carbon associated with the ester. This is because the phenyl ring is made up of $$\mathrm{sp^2}$$ carbons, which are more electronegative than the $$\mathrm{sp^3}$$ benzylic carbon. Thus it exerts a negative inductive effect which decreases the electron density on the carbon. The same effect, albeit much stronger, is also exerted on the same carbon by the chlorine.
Thus, the benzylic carbon, with lower electron density , is much more susceptible to the $$\ce{CN^-}$$ nucleophile and hence the reaction should favour an $$\mathrm{S_N2}$$ pathway. Then cyanide and ester hydrolysis give the respective acid groups.