The invention provides methods for the synthesis of cyclic dinucleotides and thiophosphate analogs thereof as well as a new family of analogs of cyclic diguanosine monophosphate that includes a series of seven phosphorothioate derivatives that includes diastereomers of mono-, di-, and trithiophosphates.