Host lipid metabolism and viral responses are intimately connected. However, the process by which the acquired immune systems adapts lipid metabolism to meet demands, and whether or not the metabolic rewiring confers a selective advantage to host immunity, remains unclear. Here we show that viral infection attenuates the expression of genes related to lipid metabolism in murine CD4+ T cells, which in turn increases the expression of antiviral genes. Inhibition of the fatty acid synthesis pathway substantially increases the basal expression of antiviral genes via the spontaneous production of type I interferon (IFN). Using a combination of CRISPR/Cas9-mediated genome editing technology and a global lipidomics analysis, we found that the decrease in monounsaturated fatty acid caused by genetic deletion of Scd2 in mice was crucial for the induction of an antiviral response through activation of the cGAS-STING pathway. These findings demonstrate the important relationship between fatty acid biosynthesis and type I IFN responses that enhances the antiviral response.