The Hero and the Crown by Robin McKinley
She could not remember a time when she had not known the story; she had grown up knowing it.
Aerin is the only child of the king of Damar, yet she has never really been accepted there. The story of her mother, witchwoman who enspelled her father, has left her untrusted. Especially by the sol, the aristocracy. But slowly she finds a role and a place for herself. And in the end she is the one who becomes:”(this is not really a spoiler. Cause it is a YA fantasy novel. How do you really expect it to end?)”: both inspiration and legend.