Here's why:
* Sodium (Na) is a metal.
* Chlorine (Cl) is a nonmetal.
Sodium chloride is formed by an ionic bond between the sodium metal and the chlorine nonmetal.