Transformer (tra) is the second gene of a regulatory cascade based on RNA splicing that determines sex in Drosophila melanogaster. Splicing of tra transcripts is regulated by the master gene Sex lethal and tra itself regulates splicing of the transcriptional regulator doublesex (dsx). We present the isolation and characterization of Botra, the olive fruit fly Bactrocera oleae orthologue to the Drosophila gene transformer. As in Drosophila, Botra transcripts are spliced in a sex-specific manner so that only females encode a functional polypeptide of 422 amino acids, whereas males encode presumably nonfunctional peptide(s). The identification of multiple TRA/TRA-2 binding sites within the Botra male-specific exons, suggests an autoregulation mechanism of tra, through TRA/TRA2 activities. The fundamental role of the TRA protein in sex determination of Bactrocera was investigated by RNA interference, where the introduction of Botra dsRNA into embryos resulted in complete transformation of XX flies into fertile males.