Mechanism. 1) Nucleophilic Attack by the Alcohol. 4a.jpg. 2) Deprotonation by pyridine. 5a.jpg. 3) Leaving group removal.The esterification reaction is both slow and reversible. The equation for the reaction between an acid RCOOH and an alcohol R' OH.