Amides can be prepared from carboxylic acids or their derivatives.
Carboxylic acids react with amines in the presence of DCC or dicyclohexylcarbodiimide, a dehydrating reagent, to give amides.
The mechanism begins with the protonation of DCC by carboxylic acid, making it a better acceptor.
Next, the carboxylate adds to the protonated carbodiimide, forming a reactive acylating agent.
Subsequently, amine exerts a nucleophilic attack at the acylating agent, forming a tetrahedral intermediate.
Finally, the departure of dicyclohexylurea gives an amide.
Similarly, acid halides or anhydrides react with ammonia or amines to give amides.
Ammonia yields primary amides, whereas primary and secondary amines give secondary and tertiary amides.
The reaction requires two equivalents of ammonia or amine, one for the nucleophilic attack and the second to act as a base.
Acid halides being the most reactive derivative, provide the best yield of amides.
Esters also react with ammonia or amines to form amides. However, esters being less reactive, require heat or a high concentration of amines.