Versatile and functionalised intermediates for the synthesis of vitamin D and novel vitamin D derivatives. The invention provides novel intermediates for the complete synthesis of vitamin D and allows a great versatility of functional groups in the final vitamin derivatives. The invention also provides vitamin derivatives that are epimeric in position 3 and vitamin derivatives with a wide range of functionalities in position 18, including compounds with isotopic labeling