In SIMS, a primary ion beam (commonly consisting of ions like Cs+, O2+, or Ga+) bombards the surface of the material. This bombardment causes the ejection, or sputtering, of secondary ions from the surface. These secondary ions are then collected and analyzed by a mass spectrometer. The resulting mass spectrum provides both qualitative and quantitative information about the surface composition.