text: Pyridine is used as a polar, basic, low-reactive solvent, for example in Knoevenagel condensations. It is especially suitable for the dehalogenation, where it acts as the base for the elimination reaction. In esterifications and acylations, pyridine activates the carboxylic acid chlorides and anhydrides. Even more active in these reactions are the derivatives 4-dimethylaminopyridine (DMAP) and 4-(1-pyrrolidinyl) pyridine. Pyridine is also used as a base in some condensation reactions.