Here's why:
* Sodium (Na) is a metal and has a tendency to lose one electron to achieve a stable electron configuration. This makes it a positively charged ion (Na+).
* Chlorine (Cl) is a non-metal and has a tendency to gain one electron to achieve a stable electron configuration. This makes it a negatively charged ion (Cl-).
The strong electrostatic attraction between the positively charged sodium ion (Na+) and the negatively charged chloride ion (Cl-) forms the ionic bond, resulting in the formation of sodium chloride (NaCl), which is common table salt.