Here's why:
* Ionic Bonding: Sodium chloride (NaCl) forms an ionic bond. This means that sodium atoms donate an electron to chlorine atoms, creating positively charged sodium ions and negatively charged chloride ions.
* Electrostatic Attraction: Opposite charges attract. The strong electrostatic attraction between the positively charged sodium ions and the negatively charged chloride ions holds them together in a specific, repeating pattern.
* Crystal Lattice: This repeating pattern of ions forms a three-dimensional structure called a crystal lattice. The arrangement is highly organized and symmetrical.
Think of it like a giant, three-dimensional checkerboard where the "squares" are made of alternating sodium and chloride ions. This arrangement maximizes the attractive forces between the ions, making the crystal very stable.