We may take it for granted that the sex of an animal is established at birth and doesn't change. However, about 500 species of fish change sex in adulthood, often in response to environmental cues. How these fish change sex has, until now, been a mystery.