When an element made up of atoms that easily eliminate electrons (a metal) reacts with a component made up of atoms that readily achieve electrons (a nonmetal), a transfer of electrons generally happens, creating ions. The compound formed by this transfer is stabilized with the electrostatic sights (ionic bonds) between the ions of opposite charge