The blood brain barrier (BBB) forms a stringent barrier that protects the brain from components in the circulation that could interfere with neuronal function. At the same time, the BBB enables selective transport of critical nutrients and other chemicals to the brain. Beyond these functions, another recently recognized function is even less characterized, specifically the role of the BBB in modulating behavior by affecting neuronal function in a sex-dependent manner. Notably, signaling in the adult Drosophila BBB is required for normal male courtship behavior. Courtship regulation also relies on male-specific molecules in the BBB. Our previous studies have demonstrated that adult feminization of these cells in males significantly lowered courtship. Here, we conducted microarray analysis of BBB cells isolated from males and females. Findings revealed that these cells contain male- and female-enriched transcripts, respectively. Among these transcripts, nuclear receptor Hr46/Hr3 was identified as a male-enriched BBB transcript. Hr46/Hr3 is best known for its essential roles in the ecdysone response during development and metamorphosis. In this study, we demonstrate that Hr46/Hr3 is specifically required in the BBB cells for courtship behavior in mature males. The protein is localized in the nuclei of sub-perineurial glial cells (SPG), indicating that it might act as a transcriptional regulator. These data provide a catalogue of sexually dimorphic BBB transcripts and demonstrate a physiological adult role for the nuclear receptor Hr46/Hr3 in the regulation of male courtship, a novel function that is independent of its developmental role.