Bacterial avoidance and innate immune response are two ways by which C. elegans respond to pathogenic bacteria. In this issue of Developmental Cell, Kumar et al. (2019) and Singh and Aballay (2019) demonstrate that bacterial colonization is essential to induce both responses, which may be associated with somatic and reproductive longevity.