The interaction and communication between bacteria and their hosts modulate many aspects of animal physiology and behavior. Dauer entry as a response to chronic exposure to pathogenic bacteria in <i>Caenorhabditis elegans</i> is an example of a dramatic survival response. This response is dependent on the RNA interference (RNAi) machinery, suggesting the involvement of small RNAs (sRNAs) as effectors. Interestingly, dauer formation occurs after two generations of interaction with two unrelated moderately pathogenic bacteria. Therefore, we sought to discover the identity of <i>C. elegans</i> RNAs involved in pathogen-induced diapause. Using transcriptomics and differential expression analysis of coding and long and small noncoding RNAs, we found that <i>
mir-243-3p</i> (the mature form of <i>
mir-243</i>) is the only transcript continuously upregulated in animals exposed to both <i>Pseudomonas aeruginosa</i> and <i>Salmonella enterica</i> for two generations. Phenotypic analysis of mutants showed that <i>
mir-243</i> is required for dauer formation under pathogenesis but not under starvation. Moreover, DAF-16, a master regulator of defensive responses in the animal and required for dauer formation was found to be necessary for <i>
mir-243</i> expression. This work highlights the role of a small noncoding RNA in the intergenerational defensive response against pathogenic bacteria and interkingdom communication.<b>IMPORTANCE</b> Persistent infection of the bacterivore nematode <i>C. elegans</i> with bacteria such as <i>P. aeruginosa</i> and <i>S. enterica</i> makes the worm diapause or hibernate. By doing this, the worm closes its mouth, avoiding infection. This response takes two generations to be implemented. In this work, we looked for genes expressed upon infection that could mediate the worm diapause triggered by pathogens. We identify <i>
mir-243-3p</i> as the only transcript commonly upregulated when animals feed on <i>P. aeruginosa</i> and <i>S. enterica</i> for two consecutive generations. Moreover, we demonstrate that <i>
mir-243-3p</i> is required for pathogen-induced dauer formation, a new function that has not been previously described for this microRNA (miRNA). We also find that the transcriptional activators DAF-16, PQM-1, and CRH-2 are necessary for the expression of <i>
mir-243</i> under pathogenesis. Here we establish a relationship between a small RNA and a developmental change that ensures the survival of a percentage of the progeny.