General Chemistry
It forms an intermediate complex with the amine.
It deprotonates the amine, making it a better nucleophile.
It reduces the carboxylic acid to an alcohol.
It protonates the carbonyl oxygen, increasing its electrophilicity.