Insecticide resistance is an economically important example of evolution in response to intense selection pressure. Here, the genetics of resistance to the neonicotinoid insecticide imidacloprid is explored using the Drosophila Genetic Reference Panel, a collection of inbred Drosophila melanogaster genotypes derived from a single population in North Carolina. Imidacloprid resistance varied substantially among genotypes, and more resistant genotypes tended to show increased capacity to metabolize and excrete imidacloprid. Variation in resistance level was then associated with genomic and transcriptomic variation, implicating several candidate genes involved in central nervous system function and the cytochrome P450s Cyp6g1 and Cyp6g2. CRISPR-Cas9 mediated removal of Cyp6g1 suggested that it contributed to imidacloprid resistance only in backgrounds where it was already highly expressed. Cyp6g2, previously implicated in juvenile hormone synthesis via expression in the ring gland, was shown to be expressed in metabolically relevant tissues of resistant genotypes. Cyp6g2 overexpression was shown to both metabolize imidacloprid and confer resistance. These data collectively suggest that imidacloprid resistance is influenced by a variety of previously known and unknown genetic factors.