248): 21 Plant toxins are effective defenses because they are aversive to most insects. The same 22 molecules, however, are co-opted as host-finding cues by specialist herbivores. Although such 23 behavioral shifts are central to our understanding of herbivorous insect diversification, it is not 24 well understood how these behaviors evolve. We addressed this in Scaptomyza flava, a 25 herbivorous drosophilid fly within a lineage that shifted to feeding on toxic mustard plants 26 (Brassicales) less than 10 million years ago. S flava lost the ancestral attraction to yeast volatiles 27 and the attendant chemoreceptors used to detect these odors. Here we report that S. flava, but not 28 its close microbe-feeding relatives Drosophila melanogaster and S. pallida, is attracted to 29 mustard host-plant odors, including volatile mustard oils (isothiocyanates or ITCs). Our genomic 30 analysis uncovered three S. flava paralogs of an olfactory receptor gene (Or67b) that likely 31 experienced recent positive selection. We then tested whether these chemoreceptors could 32 underlie the observed attraction to volatile ITCs. Our in vivo recordings revealed that two of the 33 S. flava Or67b proteins (Or67b1 and Or67b3) -but not the homologous Ors from microbe-34 feeding relatives -responded selectively and sensitively to volatile ITCs. These Ors are the first 35 ITC chemoreceptors other than TRP channel family (e.g., the TrpA1 'wasabi' receptor) known 36 from any animal. Remarkably, S. flava Or67b3 was sufficient to drive olfactory attraction toward 37 butyl ITC when expressed in an attractive olfactory circuit. Our study illuminates that ancestrally 38 aversive chemicals can be co-opted as attractants through gene duplication, leading to the origin 39 of hedonic valence shifts in herbivorous insects. 40 41 42Significance Statement (120) 43 Plant toxins trigger aversive olfactory (volatile-mediated) and gustatory (contact-mediated) 44 responses in animals. Paradoxically, toxic plants are often colonized by specialist insects that co-45 opt these toxins as host-plant finding cues. The mechanisms underlying these behavioral shifts, 46 from indifference or repulsion to plant chemicals, to attraction, remain unclear. To address this, 47 we used a fly lineage, Scaptomyza, that switched from yeast-feeding to feeding on mustard plants 48 less than 10 million years ago. We found that S. flava is attracted to mustard-plant odors and 49 volatile mustard oils (isothiocyanates or ITCs) such as 'wasabi', a behavior enabled by the 50 evolution of genes encoding odorant receptors highly sensitive to ITCs. Our study illuminates 51 how insects colonize toxic host plants through duplication and ecological repurposing of genes 52 encoding pre-existing chemoreceptors. 53 54 55 56 57 Many plant compounds used in food, agriculture and medicine originally evolved as 58 toxins that deter and repel enemies (1). Among the most well-known compounds are those 59 reactive electrophiles that induce the sensation of pain, such as diallyl disulfide a...