Ionic bonding is a type of chemical bond that involves the electrostatic attraction between oppositely charged ions, and is the primary interaction occurring in ionic compounds.
The ions are atoms that have gained one or more electrons (known as anions, which are negatively charged) and atoms that have lost one or more electrons (known as cations, which are positively charged). This transfer of electrons is known as electrovalence in contrast to covalence.