Electron ionization is a technique used in mass spectrometry where high-energy electrons are used to ionize gas-phase atoms or molecules, resulting in the formation of positively charged ions. This method is widely used for its ability to produce reproducible mass spectra, although it can cause extensive fragmentation of the analyte.