Fat soluble vitamins such as A D E K should be taken with a meal that has some fat, as to help their absorption. Water soluble vitamins are usually more easily absorbed.
Minerals often share their sites of absorption with others. Calcium is one that compete with magnesium, so ideally, they should be taken separately.
Vitamin D is one that greatly participates into the absorption and use of calcium.