# Can you explain the formation of an ionic compound from zinc and chlorine?

Atoms gain or lose electrons in order to achieve a noble gas configuration (an octet). The formula for the ionic compound zinc chloride is ${\text{ZnCl}}_{2}$. When forming an ion, a zinc atom loses its two valence electrons, becoming a $\text{Zn"^"2+}$ ion. The chlorine atom has seven valence electrons, and will gain one valence electron to form a chloride ion, $\text{Cl"^"1-}$. Ionic compounds are neutral, which means that the sum of the positive charges and the negative charges must equal zero. Therefore, two chloride ions, $\text{Cl"^"1-}$ must bond with one zinc ion, $\text{Zn"^"2+}$. The sum of the positive two charge on the zinc and the negative one charge on the two chloride ions equals zero. The ionic bond is formed by the electrostatic attraction between the oppositely charged ions.
$\text{Zn}$ + ${\text{Cl}}_{2}$ $\rightarrow$ $\text{Zn"^"2+}$ + $\text{Cl"^"1-}$ + $\text{Cl"^"1-}$ $\rightarrow$ ${\text{ZnCl}}_{2}$