A Mass Spectrometer is an instrument which electrically analyzes the mass of a sample molecule. Therefore, molecules need to be ionized. A sample flowing from a GC is ionized in the ion source.

There are various ionization methods. Explanation of the ion source here will be based on the most typical ionization method, EI.