Here's why:
* Electron Transfer: The atom that gains the electron becomes negatively charged (anion), while the atom that loses the electron becomes positively charged (cation).
* Electrostatic Attraction: The opposite charges attract each other strongly, creating an electrostatic force that holds the ions together in a crystal lattice structure.
Let me know if you'd like to know more about ionic bonding!