When undergoing chemical reactions, Atoms of Group 1A-7A elements tend to gain, lose or share electrons to achieve an electron configuration having eight valence electrons.