Ionic bonding is the type of bonding that occurs when one atom transfers one or more electrons to another atom. This transfer of electrons results in the formation of positively and negatively charged ions, which are then attracted to each other due to their opposite charges.
Ionic bonds are formed between metals and non-metals. Metals tend to lose electrons to form positively charged ions (cations), while non-metals tend to gain electrons to form negatively charged ions (anions). The electrostatic attraction between these oppositely charged ions results in the formation of an ionic bond.
Common examples of ionic compounds include table salt (sodium chloride, NaCl), calcium chloride (CaCl2), and magnesium oxide (MgO).