The first step involves light opening the ring of 7-dehydrocholesterol to form pre vitamin D3. This is a photochemically induced conrotatory electrocyclic reaction. The second step is a [1,7]-hydride shift to make vitamin D3.