An RNAi screen of 17 worm candidate genes revealed that knockdown of the transcription factor nhr-49, a master regulator of fat metabolism, shortens worm lifespan upon infection with E. faecalis (and other potentially pathogenic bacteria) compared to Escherichia coli. The functional similarity of nhr-49 to the mammalian peroxisome proliferator-activated receptors (PPARs) suggests that this is mediated through a link between fatty acid metabolism and innate immunity. In addition, knockdown of either dlg-1 or ajm-1, which encode physically interacting proteins in the C. elegans epithelial junction, also reduces worm lifespan upon E. faecalis challenge, demonstrating the importance of the intestinal epithelium as an immune barrier.