The origin of life is believed to have started with prebiotic molecules reacting along unidentified pathways to produce key molecules such as nucleosides. To date, a single prebiotic pathway to purine nucleosides had been proposed. It is considered to be inefficient due to missing regioselectivity and low yields. We report that the condensation of formamidopyrimidines (FaPys) with sugars provides the naturalN-9 nucleosides with extreme regioselectivity and in good yields (60%). The FaPys are available from formic acid and aminopyrimidines, which are in turn available from prebiotic molecules that were also detected during the Rosetta comet mission. This nucleoside formation pathway can be fused to sugar-forming reactions to produce pentosides, providing a plausible scenario of how purine nucleosides may have formed under prebiotic conditions.