Magnesium chloride MgCl2 is formed when a magnesium atom donate its two outer valence electrons to chlorine atoms Two chlorine atoms are required to gain each one electron All the ions cations and anions attain stable octet