What is the role of pyridine in the acylation reaction of amines?


 
Pyridine being a base is used to remove the side product i.e., HCI from the reaction mixture.