The male-specific product of the fruitless gene (fruM) in Drosophila melanogaster is necessary for all aspects of male courtship. However, previous studies have reported observations of courtship-like behaviors in males lacking fruM when these flies are housed with other males for several days. Now, Yufeng Pan and Bruce Baker report that this experience-dependent development of courtship behaviors requires the expression of male-specific doublesex (dsxM) in neurons that normally express both genes (Cell 156, 236–248, 2014). Males lacking fruM that were housed for at least 1 day with other males, conspecific females or females of a different species all showed courtship behaviors toward males and females in a courtship assay. Wild-type males, however, rarely court other males, and their courtship of females is not dependent on previous social experience. The authors further demonstrated that, when dsxM was replaced by the female-specific dsx in neurons that normally express both dsxM and fruM, all courtship behavior was lost. Finally, they demonstrated that genetic females expressing dsxM also courted females. These data identify Drosophila male courtship as a genetic model for understanding the interplay between innate and acquired behavior.