Which subatomic particle changes in order to form ions?

Ions are formed by the gain OR loss of an electron.