Mate choice is an evolutionarily critical decision that requires the detection of multiple sex-specific signals followed by central integration of these signals to direct appropriate behavior. The mechanisms controlling mate choice remain poorly understood. Here, we show that the glial amino-acid transporter genderblind controls whether Drosophila melanogaster males will attempt to mate with other males. Genderblind (gb) mutant males showed no alteration in heterosexual courtship or copulation, but were attracted to normally unappealing male species-specific chemosensory cues. As a result, genderblind mutant males courted and attempted to copulate with other Drosophila males. This homosexual behavior could be induced within hours using inducible RNAi, suggesting that genderblind controls nervous system function rather than its development. Consistent with this, and indicating that glial genderblind regulates ambient extracellular glutamate to suppress glutamatergic synapse strength in vivo, homosexual behavior could be turned on and off by altering glutamatergic transmission pharmacologically and/or genetically.