It in one embodiment, include to the case control cGAMP or cGAsMP with cancer and cGAMP or cGAsMP being allowed to treat cancer for the method for the treatment of cancer in one of patient. In another embodiment, a kind of method of en2ymatically or cGAsMP for synthesizing and purifying cGAMP includes providing cGAS Respectively in connection with cGAS ATP or ATP phosphorothioates, to product cGAMP or cGAsMP GTP Separated cGAMP or cGAsMP from cGAS and DNA by ultrafiltration Use the purification cGAMP or cGAsMP and optionally gel filtration chromatography of ion-exchange chromatography.