transferring electrons from one atom to another.
Step-by-step explanation
Ionic bonding is the complete transfer of valence electron(s) between atoms. It is a type of chemical bond that generates two oppositely charged ions. In ionic bonds, the metal loses electrons to become a positively charged cation, whereas the nonmetal accepts those electrons to become a negatively charged anion. Ionic bonds require an electron donor, often a metal, and an electron acceptor, a nonmetal.
Therefore, ionic bonds are formed by transferring electrons from one atom to another.