Photolysis of N-hydroxy-2-thiopyridone esters derived from uronic acids or alpha-amino acids in presence of vinyl phosphonate affords the corresponding phosphonate derivatives. A convenient route for the synthesis of the isostere of AZT-5' monophosphate is described.