The reaction of xanthate (dithiocarbonate) esters with N,N-dimethylhydrazine leads to mixtures of the derived thionocarbamates and thionocarbazates whereas alkoxythiocarbonylimidazoles give cleanly the thionocarbazates. The outcome of these reactions is determined by the nature of the intermediate formed by expulsion of the leaving group.