Study shows how sex-determining genes can mediate courtship and aggressive behaviors in fruit flies. The findings demonstrate the complexity of the relationship between behavior and sex.