Vitamin D is largely produced by your skin under the influence of the sun. You get a small part from food, such as fatty fish. Vitamin D comes in different forms, namely vitamin D2 and vitamin D3. When you take a supplement with vitamin D, it is preferable to choose D3. This is more easily absorbed by your body, because it is a body-specific variant.