Magnesium chlorideis the name for the chemical compound with the formula MgCl2and its various hydrates MgCl2(H2O)x. These salts are typical ionic halides, being highly soluble in water. The hydratedmagnesium chloridecan be extracted from brine or sea water.