Magnesium helps your body to absorb thiamine. If you have low thiamine levels, your doctor may recommend magnesium supplements in some cases. However, more research is needed to better understand the role of magnesium supplements in the treatment of thiamine deficiency.