Thumbnail: The crystal structure of sodium chloride, $$\ce{NaCl}$$, a typical ionic compound. The purple spheres represent sodium cations, $$\ce{Na^{+}}$$, and the green spheres represent chloride anions, $$\ce{Cl^{-}}$$. Image used with permission (Public Domain; Benjah-bmm27).