An integrated set of reactions and conditions that allow an eight-step one-flask synthesis of the protected derivatives of c-di-GMP and the [R(p),R(p)] and [R(p),S(p)] thiophosphate analogues is reported. Deprotection is also carried out as a one-flask procedure, with the final products isolated by crystallization from the reaction mixture. Chromatography is only used for separation of the thiophosphate diastereomers.