Ions are any molecules that have a charge. (positive or negative.) Group 1 atoms have 1 valence electron, so their ions are formed by giving away one electron. Group 7 atoms have 7 valence electrons, so their ions are formed by gaining one electron. This process gives the atom a full shell of 8, which makes it stabilized.