Pathogens generate ubiquitous selective pressures and host-pathogen interactions alter social behaviours in many animals<sup>1-4</sup>. However, very little is known about the neuronal mechanisms underlying pathogen-induced changes in social behaviour. Here we show that in adult Caenorhabditis elegans hermaphrodites, exposure to a bacterial pathogen (Pseudomonas aeruginosa) modulates sensory responses to pheromones by inducing the expression of the chemoreceptor STR-44 to promote mating. Under standard conditions, C. elegans hermaphrodites avoid a mixture of ascaroside pheromones to facilitate dispersal<sup>5-13</sup>. We find that exposure to the pathogenic Pseudomonas bacteria enables pheromone responses in AWA sensory neurons, which mediate attractive chemotaxis, to suppress the avoidance. Pathogen exposure induces
str-44 expression in AWA&#
xa0;neurons, a process regulated by a transcription factor
zip-5 that also displays a pathogen-induced increase in expression in AWA. STR-44 acts as a pheromone receptor and its function in AWA&#
xa0;neurons is required for pathogen-induced AWA pheromone response and suppression of pheromone avoidance. Furthermore, we show that C. elegans hermaphrodites, which reproduce mainly through self-fertilization, increase the rate of mating with males after pathogen exposure and that this increase requires
str-44 in AWA&#
xa0;neurons. Thus, our results uncover a causal mechanism for pathogen-induced social behaviour plasticity, which can promote genetic diversity and facilitate adaptation of the host animals.