In the tephritids Ceratitis capitata and Bactrocera oleae, the gene transformer acts as the memory device for sex determination, via an auto-regulatory function; and functional Tra protein is produced only in females. This paper investigates the evolution of the gene tra, which was characterised in twelve tephritid species belonging to the less extensively analysed genus Anastrepha. Our study provided the following major conclusions. Firstly, the memory device mechanism used by this gene in sex determination in tephritids likely existed in the common ancestor of the Ceratitis, Bactrocera and Anastrepha phylogenetic lineages. This mechanism would represent the ancestral state with respect to the extant cascade seen in the more evolved Drosophila lineage. Secondly, Transformer2-specific binding intronic splicing silencer sites were found in the splicing regulatory region of transformer but not in doublesex pre-mRNAs in these tephritids. Thus, these sites probably provide the discriminating feature for the putative dual splicing activity of the Tra-Tra2 complex in tephritids. It acts as a splicing activator in dsx pre-mRNA splicing (its binding to the female-specific exon promotes the inclusion of this exon into the mature mRNA), and as a splicing inhibitor in tra pre-mRNA splicing (its binding to the male-specific exons prevents the inclusion of these exons into the mature mRNA). Further, a highly conserved region was found in the specific amino-terminal region of the tephritid Tra protein that might be involved in Tra auto-regulatory function and hence in its repressive splicing behaviour. Finally, the Tra proteins conserved the SR dipeptides, which are essential for Tra functionality.