Answer:
Ionic bonds are formed by the transfer of valence electrons (those that can move free) between certain type of atoms, these exchange generates two iconic atoms with opposite charge.
So, basically, the transfer of this electrons is how is formed.