We have studied the fragmentation of the melamine (2,4,6-triamino-s-triazine) molecule and its deuterated counterparts via electron impact ionization (EI), laser desorption ionization (LDI), and collision-induced dissociation (CID). Our EI and LDI measurements show that the dissociation of melamine is different from the concerted triple dissociation pathway of s-triazine. In EI experiments, the protonated and parent melamine ion (m/z ) 127 (C 3 N 6 H 7 + ) and 126 (C 3 N 6 H 6 + )) were formed initially with 20 and 70 eV electron bombardment. Other fragment ions, such as m/z ) 43 (CN 2 H 3 + ), 53 (C 2 N 2 H + ), 56 (CN 3 H 2 + ), 68 (C 2 N 3 H 2 + ), 83 (C 2 N 4 H 3 + ), 85 (C 2 N 4 H 5 + ), 99 (C 2 N 5 H 5 + ), 110 (C 3 N 5 H 4 + ), etc., were subsequently formed from the decomposition of metastable melamine ions. This speculation was supported by our additional CID measurements. On the other hand, in the LDI experiments the melamine molecule was pumped to 1 1 A′′ and 2 1 A′ excited electronic states, respectively, with 266 and 193 nm lasers. In view of the same fragment ions (m/z ) 43, 45 (CN 2 H 5 + ), 60 (CN 3 H 6 + ), 85, and 127) resulting from the different excited 1 1 A′′ and 2 1 A′ states, we conclude that the fragmentation of melamine in LDI proceeds via internal conversion to its ground potential energy surface (1 1 A′) prior to dissociation. The decomposition mechanism in the ground electronic state has been investigated using the density functional B3LYP/6-31G* and B3LYP/cc-pVTZ methods. All the molecular ions observed in EI experiments can be produced from major and minor neutral fragments of melamine dissociation. The calculations demonstrate the reaction pathways leading to these fragments and predict the corresponding activation energies. The dissociation mechanism of melamine is shown to be distinct from that of s-triazine, because of the presence of mobile hydrogen atoms in the amino groups.