Vitamin D is a nutrient found in some foods. It is used by cells throughout the body. The body gets vitamin D through exposure to sunlight and from eating certain foods.