Mass spectrometry is a technique used to identify molecules based on their mass. It works by ionizing chemical compounds to generate molecular or fragment ions and measuring their mass-to-charge ratios. The document discusses the basic principles and components of a mass spectrometer, including ionization, separation of ions based on mass, and detection. It also covers common fragmentation patterns observed for different classes of compounds like hydrocarbons, alcohols, aromatics, and others. General rules for fragmentation are provided along with examples to illustrate how structural information can be determined.