Even though the majority of the D vitamin is formed through the exposure of the skin to sunlight there are some foods that do contain some of the vitamin naturally. This form of the D vitamin is known as vitamin D2, or ergocalciferol. This is used in the same way as the other D vitamins and is the type used to create the majority of D vitamin supplements.