a) Amides can be obtained by reacting amines with alkanoyl halides and anhydrides .

Ethanoyl chloride reacts with two equivalents of methylamine to form ethanamide.
sintesis-amidas
 
The second equivalent of amine is used to collect the hydrochloric acid and favor the equilibria.
 
sintesis-amidas
Ethanoic anhydride reacts with ammonia to form ethanamine and ethanoic acid.
 
b) Carboxylic acids react with ammonia and amines to form amides .
 
sintesis-amidas
 
c) The reaction of ammonia and amines with esters forms amides.
 
sintesis-amidas
 
d) Preparation of urea.
The reaction of ammonia with carbon dioxide, followed by heating under pressure, generates urea. The reaction proceeds in the following stages.
 
sintesis-amidas-urea
 
In the world, large quantities of urea are produced by this method, to be used as fertilizer.