When an element made up of atoms that quickly lose electrons (a metal) reacts with a component composed of atoms that conveniently attain electrons (a nonmetal), a transfer of electrons typically occurs, producing ions. The compound formed by this transfer is stabilized through the electrostatic points of interest (ionic bonds) https://angelohdyuo.thelateblog.com/30197345/5-easy-facts-about-what-is-potassium-cyanide-used-for-medically-described