The first chapter shows why Sophie and Agatha are friends:
Sophie didn’t say anything for a long time. “Maybe I became your friend to impress the School Master,” she confessed finally. “But there’s more to it now.” “Because I found you out,” Agatha grumbled. “Because I like you.” Agatha turned to her. “No one understands me here,” Sophie said, looking at her hands. “But you do. You see who I am. That’s why I kept coming back. You’re not my good deed anymore, Agatha.” Sophie gazed up at her. “You’re my friend.”
Agatha said nothing for a while. Then she touched Sophie’s hand. “Why is it you want to leave here so badly? That you’d believe in stories you know aren’t true?” Sophie met Agatha’s big, sincere eyes. For the first time, she let in the tides of doubt. “Because I can’t live here,” Sophie said, voice catching. “I can’t live an ordinary life.” “Funny,” said Agatha. “That’s why I like you.” Sophie smiled. “Because you can’t either?” “Because you make me feel ordinary,” Agatha said. “And that’s the only thing I’ve ever wanted.”
Sophie sacrifices herself to save Agatha, then tells her she loves her, thwarting the Headmaster.
Agatha is constantly fighting with the other Evers at her school in Sophie's defense.
Despite everything that happens, and all the anger that passes between them, Agatha never gives up on Sophie as a friend.
After having a nasty fight with Sophie because of the Trial by Tale debacle, Agatha is left feeling completely alone. Professor Dovey asks Agatha what would make her happy, and she answers, "To be beautiful." So, the Fairy Godmother drags the girl to the Groom Room for an extreme makeover, and Agatha, convinced that her wish has been fulfilled, feels like a new person. The girl gleefully skips around the School for Good, leaving a trail of turned heads and dropped jaws behind her. Then eventually, Agatha catches her reflection in a mirror, and sees that she looks exactly the same. She was always beautiful. All she needed was some confidence and a smile.
The ending to The Last Ever After: The schoolmaster is finally dead, the Schools has been restored to order, along with the balance between Good and Evil. Sophie is now the new Dean of Evil. Agatha departs to Camelot with Tedros, but she and Sophie agree to visit one another a lot since they're a day's journey away from one another. Tedros also lifts the death warrant on his mother and Lancelot, allowing them to return to the kingdom in order to live happily together.
After all the lying, cheating, beauty rituals, and chasing after cute boys, Sophie has finally managed to truly love someone: herself, flaws and all.