# Question #99352

Chlorine exists as a diatomic molecule, $C {l}_{2}$, in which two chlorine atoms share an electron to form a covalent bond and complete their octets.
When chlorine bonds to metals, it will take an electron from them to become the chloride anion, $C {l}^{-}$. That happens because metals, especially alkali and alkali earth metals, are willing to give up electrons to complete their octets.
For example, in sodium chloride, the chlorine atom will take one electron from sodium's outermost shell, forming an ionic bond and giving rise to the aforementioned chloride anion and to the sodium cation, $N {a}^{+}$.
So, as a conclusion, in $C {l}_{2}$ the two chlorine atoms share and electron, while in sodium chloride, $N a C l$, the chlorine atom takes an electron from sodium.