Vitamin D is sometimes called the “sunshine vitamin” because it's produced in your skin in response to sunlight. It's a fat-soluble vitamin in a family of compounds that includes vitamins D-1, D-2, and D-3. Your body produces vitamin D naturally when it's directly exposed to sunlight.