The hypothesis that life on Earth may have started with a heterogeneous nucleic acid genetic system including both RNA and DNA has attracted broad interest. The recent finding that two RNA subunits (cytidine, C, and uridine, U) and two DNA subunits (deoxyadenosine, dA, and deoxyinosine, dI) can be coproduced in the same reaction network, compatible with a consistent geological scenario, supports this theory. However, a prebiotically plausible synthesis of the missing units (purine ribonucleosides and pyrimidine deoxyribonucleosides) in a unified reaction network remains elusive. Herein, we disclose a strictly stereoselective and furanosyl-selective synthesis of purine ribonucleosides (adenosine, A, and inosine, I) and purine deoxynucleosides (dA and dI), alongside one another, via a key photochemical reaction of thioanhydroadenosine with sulfite in alkaline solution (pH 8-10). Mechanistic studies suggest an unexpected recombination of sulfite and nucleoside alkyl radicals underpins the formation of the ribo C2'-O bond. The coproduction of A, I, dA, and dI from a common intermediate, and under conditions likely to have prevailed in at least some primordial locales, is suggestive of the potential coexistence of RNA and DNA building blocks at the dawn of life.