Scientists have shed new light on the impact of sexual selection on species diversity after studying the mating rituals of dance flies.