GC and magnesium deficiency: Magnesium deficiency can also impair the production of vitamin D, since this metal is an important cofactor in the production of vitamin D and 25(OH)D; magnesium is involved in the binding of cholecalciferol and ergocalciferol to hydroxylation enzymes and vitamin D binding protein [34, 40].