Ionic bonds are also formed when there is a large electronegativity difference between two atoms. This difference causes an unequal sharing of electrons such that one atom completely loses one or more electrons and the other atom gains one or more electrons, such as in the creation of an ionic bond between a metal atom (sodium) and a nonmetal (fluorine).
An ionic bond is a force of attraction between a positive and a negatively charged ion. These oppositely charged ions are usually produced when a metal transfers its electron to a nonmetal.