In contrast, ionic bonds are formed when one atom donates electrons to another atom. This creates two oppositely charged ions which are attracted to each other. Ionic bonds are typically found in compounds between a metal and a non-metal. For example, sodium chloride (NaCl) is an ionic compound because the sodium atom donates one electron to the chlorine atom, creating sodium and chloride ions.