BACKGROUND: Gut bacteria-host interactions have been implicated in the pathogenesis of numerous human diseases, but few mechanisms have been described. The genetically tractable nematode worm Caenorhabditis elegans can be infected with pathogenic bacteria, such as the human gut commensal Enterococcus faecalis, via feeding, making it a good model for studying these interactions. RESULTS: 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. CONCLUSIONS: The protective roles identified for nhr-49, dlg-1, and ajm-1 suggest mechanistic interactions between the gut microbiota, host fatty acid metabolism, innate immunity, and epithelial junction integrity that are remarkably similar to those implicated in human metabolic and inflammatory diseases.