Here's how it works:
* Formation: When an atom loses or gains electrons, it becomes an ion.
* Cations are positively charged ions formed when an atom loses electrons.
* Anions are negatively charged ions formed when an atom gains electrons.
* Attraction: The opposite charges of the ions attract each other strongly, forming an ionic bond. This attraction is what holds the ions together in an ionic compound.
Think of it like magnets: A positive charge is like a north pole, and a negative charge is like a south pole. They attract each other, creating a strong bond.
Example:
In sodium chloride (NaCl), sodium (Na) loses an electron to become a positively charged sodium ion (Na+), while chlorine (Cl) gains an electron to become a negatively charged chloride ion (Cl-). These oppositely charged ions are then attracted to each other, forming the ionic compound sodium chloride.