This data set covers the entire process of producing magnesium chloride products from by-product magnesium-containing materials in the production process of titanium sponge as raw materials, through separation, purification, concentration, crystallization or drying. The main input is the magnesium-containing waste liquid generated during the production of titanium sponge or the magnesium-containing intermediate generated by the hydrolysis of crude titanium tetrachloride, as well as necessary process water, acid-base regulators, energy and other auxiliary materials; the main output is magnesium chloride products of different specifications (anhydrous magnesium chloride or magnesium chloride hexahydrate), as well as a small amount of by-products or wastewater such as filter residues and evaporation condensate. The main process units include in sequence the collection and pretreatment of magnesium-containing materials, chemical conversion or solid-liquid separation to extract magnesium ions, solution purification and impurity removal, concentration and evaporation to saturation, crystallization or drying to obtain finished products, and finished product packaging and storage.