Anhydrous magnesium chloride, dehydration product from magnesium chloride hydrate is a general raw material to prepare electrolytic magnesium. However, the dehydration is not trivial and can be accompanied by hydrolysis leading to the production of undesirable hydroxy chloride compounds of magnesium. Therefore, dehydration process is actually the most complicated and hardest in the electrolysis methods for the production of magnesium. In this work, the influence of dehydrating temperature has been studied at the temperature range from to in air and HCl gas atmosphere individually to compare the results. With increasing of dehydration temperature MgOHCl and MgO were obtained in air. On the other hand, when the temperature was increased above anhydrous magnesium chlorides were prepared in HCl gas atmosphere. Anhydrous magnesium chloride was formed at near and completely crystallized at about . All of the HCl used as atmosphere gas in the dehydration was recovered as hydrochloric acid solution at a water vessel up to 41% by weight at .