Imidazolides of dinucleotides such as ImpApA can be formed from the corresponding dinucleotides in a two-stage process, which gives up to 15% yields under potentially prebiotic conditions. First a solution of the dinucleotide and sodium trimetaphosphate is dried out at constant temperature and humidity. This produces polyphosphates such pnApA in excellent yield (greater than or equal to 80%). The products are dissolved in water, imidazole is added, and the solution is dried out again. This yields the 5'--phosphorimidazolides.