In MALDI, the sample is co-crystallized with a matrix compound that absorbs the laser energy during the desorption/ionization process. When a pulsed laser beam strikes the sample-matrix mixture, the energy absorbed by the matrix leads to the formation of gas-phase ions of the analyte molecules. This process involves the transfer of protons from the matrix to the analyte, facilitating ionization.