Do I need to take vitamin D with magnesium?

Yes. The enzymes that metabolize vitamin D in the body require magnesium. Also, magnesium helps activate vitamin D in the body, which makes the pairing even more critical.