In the Ugi reaction, the initial reaction is the formation of an imine (1) from the amine and the ketone. Subsequent reaction of the imine with the isocyanide and the carboxylic acid gives intermediate 2, which rearranges via an acyl transfer into the bis-amide 3. The exact mechanism of the trimolecular reaction to form intermediate 2 is not known.