Animals in nature are frequently challenged by toxic compounds, from those that occur naturally in plants as a defense against herbivory, to pesticides used to protect crops. On exposure to such xenobiotic substances, animals mount a transcriptional response, generating detoxification enzymes and transporters that metabolize and remove the toxin. Genetic variation in this response can lead to variation in the susceptibility of different genotypes to the toxic effects of a given xenobiotic. Here we use Drosophila melanogaster to dissect the genetic basis of larval resistance to nicotine, a common plant defense chemical and widely used addictive drug in humans. We identified quantitative trait loci (QTL) for the trait using the DSPR (Drosophila Synthetic Population Resource), a panel of multiparental advanced intercross lines. Mapped QTL collectively explain 68.4% of the broad-sense heritability for nicotine resistance. The two largest-effect loci-contributing 50.3 and 8.5% to the genetic variation-map to short regions encompassing members of classic detoxification gene families. The largest QTL resides over a cluster of ten UDP-glucuronosyltransferase (UGT) genes, while the next largest QTL harbors a pair of cytochrome P450 genes. Using RNAseq we measured gene expression in a pair of DSPR founders predicted to harbor different alleles at both QTL and showed that Ugt86Dd, Cyp28d1, and Cyp28d2 had significantly higher expression in the founder carrying the allele conferring greater resistance. These genes are very strong candidates to harbor causative, regulatory polymorphisms that explain a large fraction of the genetic variation in larval nicotine resistance in the DSPR.A routine part of life for all organisms is avoiding, and if necessary metabolizing, toxic substances encountered in the environment. A common challenge for animals are those toxins produced by potential prey and plant hosts as chemical defenses against predation and herbivory (Glendinning 2002(Glendinning , 2007. Understanding how organisms overcome these defenses can give us insight into the evolution of host specialization, which can often involve an organism overcoming the defenses of a particular host, avoiding competition by making use of a resource toxic to other species (for example, Hungate et al. 2013). Many animals, especially insects, are also commonly exposed to chemical pesticides used to protect crop plants. As a consequence of this strong evolutionary pressure, there are a number of examples of insecticide resistance arising in natural populations (Crow 1957). Understanding the biology and molecular genetics underlying resistance to insecticides (Perry et al. 2011;Ffrench-Constant 2013) is valuable in the design of pest management strategies. In addition, humans are frequently exposed to an array of potentially harmful compounds, notably pharmaceuticals. Given the desire to achieve maximal drug efficacy while minimizing dosage and avoiding adverse drug responses, elaborating the mechanisms of drug metabolism, and the genet...