A heroic man accepts an ugly woman despite her appearance, and then she transforms to become beautiful, for his actions broke a curse.
It's a common motif in medieval storytelling - and often, the choice of what the hero has to do sheds some light on the society's concept of gender.