In chemical bonds, atoms can either transfer or share their valence electrons. In the extreme case where one or more atoms lose electrons and other atoms gain them in order to produce a noble gas electron configuration, the bond is called an ionic bond.