Atoms tend to gain, lose, or share electrons in order to attain a full valence shell of eight electrons.