Here, we describe a novel regulatory role for the cytokine IFNγ that is critical for preventing fatal encephalitis after viral infection. Here, IFNG is linked to viral infectious disease.