Detection of cytosolic DNA by the enzyme cGAS triggers the production of cGAMP, a second messenger that binds and activates the adaptor protein STING, which leads to interferon (IFN) production. Here, we found that in vivo natural killer (NK) cell killing of tumor cells, but not of normal cells, depends on STING expression in non-tumor cells. Experiments using transplantable tumor models in STING- and cGAS-deficient mice revealed that cGAS expression by tumor cells was critical for tumor rejection by NK cells. In contrast, cGAS expression by host cells was dispensable, suggesting that tumor-derived cGAMP is transferred to non-tumor cells, where it activates STING. cGAMP administration triggered STING activation and IFN-β production in myeloid cells and B cells but not NK cells. Our results reveal that the anti-tumor response of NK cells critically depends on the cytosolic DNA sensing pathway, similar to its role in defense against pathogens, and identify tumor-derived cGAMP as a major determinant of tumor immunogenicity with implications for cancer immunotherapy.