Pyrimidine and purine nucleoside analogues with a 1,4-dioxane, 1,4-0xathiane or 1,4-oxazine ring structure have been prepared from the corresponding dimesylated seconucleosides by treatment with either sodium hydroxide, sodium sulfide or primary alkylamines.