When an element composed of atoms that easily get rid of electrons (a metallic) reacts with an element made up of atoms that conveniently get electrons (a nonmetal), a transfer of electrons commonly happens, generating ions. The compound formed by this transfer is stabilized because of the electrostatic points of https://cyanolab.net/potassium-cyanide/