An ionic bond is the attraction of oppositely charged ions. They tend to bond to be stable, and to get a full octet of 8 valence electrons. A cation is when the ion loses electrons and gains a positive charge, and an anion is when the the ion gains an electron and gains a negative charge.