Amides are usually regarded as derivatives of carboxylic acids in which the hydroxyl group has been replaced by an amine or ammonia. The lone pair of electrons on the nitrogen is delocalized into the carbonyl, thus forming a partial double bond between N and the carbonyl carbon.