Here's a breakdown:
* Alkali metals: Have one valence electron (electron in the outermost shell) and a strong tendency to lose this electron to achieve a stable octet (eight electrons in the outer shell). This loss makes them positively charged ions (cations).
* Halogens: Have seven valence electrons and a strong tendency to gain one electron to achieve a stable octet. This gain makes them negatively charged ions (anions).
When an alkali metal and a halogen meet, the alkali metal readily gives its valence electron to the halogen, forming a stable ionic bond due to the strong electrostatic attraction between the oppositely charged ions.
Example: Sodium (Na) and chlorine (Cl) react to form sodium chloride (NaCl).
* Sodium (Na) loses one electron to become a positively charged sodium ion (Na+).
* Chlorine (Cl) gains one electron to become a negatively charged chloride ion (Cl-).
* The oppositely charged ions attract each other strongly, forming a stable compound, sodium chloride (NaCl).
This process is also known as ionic bonding, which is a major driving force behind the formation of compounds between alkali metals and halogens.