The formation of vitamin D3 in the skin

The 7-dehydrocholesterol in the skin absorbs ultraviolet B light from the sun and its cyclohexadiene ring opens. There are six electrons in the excited state: the opening is conrotatory, as the Woodward–Hoffmann rules predict, and gives previtamin D3, a hexatriene with a Z central double bond.
At body temperature, previtamin D3 undergoes within hours a thermally allowed antarafacial [1,7] hydrogen shift: a hydrogen of the methyl group passes to the other end of the triene and vitamin D3 (cholecalciferol) is formed. A single sequence combines a photochemical electrocyclic reaction and a thermal sigmatropic one.