During the reaction, sodium loses its outermost electron to chlorine, resulting in the formation of positively charged sodium ions (Na+) and negatively charged chloride ions (Cl-). These oppositely charged ions are then attracted to each other by electrostatic forces and form a stable ionic compound, sodium chloride. The arrangement of these ions in a regular crystal lattice results in the formation of salt crystals.
The reaction between sodium and chlorine can be represented as follows:
2Na(s) + Cl2(g) → 2NaCl(s)