EDC couples primary amines, and other nucleophiles, to carboxylic acids by creating an activated ester leaving group. First, the carbonyl of the acid attacks the carbodiimide of EDC, and there is a subsequent proton transfer. The primary amine then attacks the carbonyl carbon of the acid which forms a tetrahedral intermediate before collapsing and discharging the urea byproduct. The desired amide is obtained.