Immune response to pathogens is energetically expensive to the host; however, the cellular source of energy to fuel immune response remains unknown. In this study, we show that Caenorhabditis elegans exposed to pathogenic Gram-positive and Gram-negative bacteria or yeast rapidly utilizes lipid droplets, the major energy reserve. The nematode's response to the pathogenic bacterium Enterococcus faecalis entails metabolic rewiring for the upregulation of several genes involved in lipid utilization and downregulation of lipid synthesis genes. Genes encoding acyl-CoA synthetase ACS-2, involved in lipid metabolism, and flavin monooxygenase FMO-2, involved in detoxification, are two highly upregulated genes during E. faecalis infection. We find that both ACS-2 and FMO-2 are necessary for survival and rely on NHR-49, a peroxisome proliferator-activated receptor alpha (PPARĪ±) ortholog, for upregulation during E. faecalis infection. Thus, NHR-49 regulates an immunometabolic axis of survival in C. elegans by modulating breakdown of lipids as well as immune effector production upon E. faecalis exposure.