When a component composed of atoms that conveniently drop electrons (a steel) reacts with an element made up of atoms that quickly acquire electrons (a nonmetal), a transfer of electrons typically happens, developing ions. The compound formed by this transfer is stabilized by the electrostatic points of interest (ionic bonds) https://hectorlaimw.blogdiloz.com/29013020/everything-about-potassium-cyanide-class