Innate immunity in animals is orchestrated by multiple cell signaling pathways, including the TGF-β; superfamily pathway. While the role of TGF-β signaling in innate immunity has been clearly identified, the requirement for this pathway in generating specific, robust responses to different bacterial challenges has not been characterized. Here, we address the role of DBL-1/TGF-β in regulating signature host defense responses to a wide range of bacteria in C. elegans. This work reveals a role of DBL-1/TGF-β in animal survival, organismal behaviors, and molecular responses in different environments. Additionally, we identify a novel role for SMA-4/Smad that suggests both DBL-1/TGF-β-dependent and -independent functions in host avoidance responses. RNA-seq analyses and immunity reporter studies indicate DBL-1/TGF-β differentially regulates target gene expression upon exposure to different bacteria. Furthermore, the DBL-1/TGF-β pathway is itself differentially affected by the bacteria exposure. Collectively, these findings demonstrate bacteria-specific host immune responses regulated by the DBL-1/TGF-β signaling pathway.