For example, in clownfish, all individuals start as males. The dominant fish in a group, typically the largest female, will then transform into a functional male. This change is triggered by social cues and hormonal shifts, and the transformed male can then reproduce with the remaining females in the group.
Sequential hermaphroditism is an adaptation that can help maintain a balanced sex ratio within a group or ensure reproductive success in environments where the availability of suitable mates may be limited.