Due to the Octet Rule ...
Elements on the right side of the Periodic Table gain electrons in order to get the 8 valence electrons and form negative ions.
And elements on the left side of the Periodic Table lose electrons in order and form positive ions.