We uncover that ENPP1's degradation of extracellular cGAMP has a long evolutionary history, and that this mechanism is critical for controlling diverse immune threats, including viral infection and inflammation. Here, ENPP1 is linked to viral infectious disease.