Group 1 metals can lose their 1 outer electron to give 1+ (positive) ions.
Group 2 metals lose their 2 outer electrons to give 2+ (positive) ions.
Group 7 non-metals gain 1 outer electron to give 1- (negative) ions.
Group 6 non-metals gain 2 outer electrons to give 2- (negative) ions.
(In other words, they have full outer shells of electrons.)