When an element made up of atoms that quickly eliminate electrons (a metal) reacts with an element made up of atoms that easily attain electrons (a nonmetal), a transfer of electrons normally happens, making ions. The compound formed by this transfer is stabilized via the electrostatic points of interest (ionic bonds) between the ions of opposite c