The unusual capability of the dominant male to change sex on the death of the queen fish, a capability known as protandrous hermaphroditism, may be an adaptation to life in the dangerous reef, as it allows the colony to survive the demise of the single reproductive female without ever having to leave the protection of the host anemone.