The mechanism of the Ugi four-component reaction has been investigated by electrospray ionization (tandem) mass spectrometry using charge-tagged reagents (a carboxylic acid or an amine) to favour detection. Key intermediates were transferred directly via ESI(+) from the reaction solution to the gas phase and characterized by MS measurements and MS/MS collision induced dissociation. The Mumm rearrangement (final step) was also investigated by both travelling wave ion mobility mass spectrometry and DFT calculations. The data seem to consolidate the amazingly selective mechanism of this intricate four-component reaction.