This dataset represents the production of crude magnesium. Owing to the characteristics of the reduction and condensation processes, crude magnesium is usually silvery-white or greyish-white metallic lumps, relatively brittle in texture, with its surface easily covered by a layer of oxide film to prevent further oxidation. It has metallic characteristics such as low density and good thermal and electrical conductivity, but its chemical activity is relatively strong and it easily reacts with oxygen, carbon dioxide and moisture in the air, and therefore usually needs to be stored under protective conditions. The key upstream starting raw material of the product is magnesium pellets; the downstream is an intermediate product/raw material that is further refined to obtain high-purity magnesium ingots. The dataset includes the main raw and auxiliary materials, energy and wastes of the production process, while infrastructure such as the manufacture of production equipment and plant construction is not included within the dataset boundary; the data inventory is formed by merging data from multiple sources.