Ionic bonding occurs between a metal and a non-metal. The metal atom donates one or more electrons to the non-metal atom, resulting in the formation of positively charged cations and negatively charged anions. These oppositely charged ions are held together by electrostatic forces to form an ionic compound.