Specifically, vitamin D2 is produced from ergosterol, a compound found in ... UVB rays from the sun convert 7-dehydrocholesterol in the skin to previtamin D3, which then undergoes further ...