content: 
  ===''A Storm of Swords''===
  In the third book, Sansa is invited to dine with Margaery and her grandmother, Olenna Redwyne.  The two women seek to learn the true nature of Joffrey Baratheon now that he and Margaery are betrothed. In turn, Olenna suggests that Sansa should marry her grandson Willas Tyrell. Sansa reveals the marriage plan to Ser Dontos, who warns her of the Tyrells; however, Sansa develops a close friendship with Margaery and is excited about becoming a part of her family. However, when Tywin learns of the marriage plot he schemes to have Sansa's brother Robb Stark killed, knowing that would leave Sansa to inherit Winterfell and the North.  He then commands his son Tyrion Lannister to marry Sansa. Tyrion is initially opposed to the marriage, but is eventually enticed by the prospect of becoming Lord of Winterfell, and so agrees to marry her.
  Sansa is shocked one morning to learn that she is being fitted for a gown to marry Tyrion that day. Joffrey taunts Sansa and acts on behalf of her father to give her away during the ceremony to add further insult.  Sansa ignores Tyrion and refuses to bend as he attempts to put his cloak around her, a marriage ceremony custom in Westeros. In turn, Joffrey commands Ser Dontos to act as a stool so that Tyrion can cloak his bride in spite of his short stature. At the banquet, Sansa dances with many lords, who offer words of comfort; however, Joffrey merely threatens to rape her. Tyrion intervenes and states a desire to castrate Joffrey. After the wedding ceremony, Tyrion chooses not to consummate the marriage due to Sansa's lack of desire in him. It is not long before many in King's Landing come to know that the marriage was never consummated.
  Not long after Sansa's marriage, Joffrey and Margaery are wed and afterward a grand feast. At Joffrey's wedding, Joffrey is poisoned, and Cersei orders both Tyrion and Sansa arrested. As Joffrey begins to choke to death, Sansa manages to flee during the chaos.  Once in her room, she gathers her belongings and notices that one of the amethysts from her hairnet, a gift from Ser Dontos, is missing. Sansa immediately realizes that the prince had been poisoned and starts to doubt Ser Dontos' rescue plan. Understanding that she will be implicated in the murder of Joffrey, she chooses to flee King's Landing with the knight anyway. Ser Dontos is later killed by Petyr Baelish, who reveals that he is the mastermind behind nearly all of the capital intrigue. He reveals that he was the one who sent Dontos to her and that Olenna took the amethyst from Sansa's hairnet.
  Baelish smuggles Sansa to safety in the Vale of Arryn, where she poses as his bastard daughter Alayne Stone. She is taken to her aunt Lysa Arryn, now married to Baelish. Lysa declares that Sansa must marry her sickly boy Robert, heir to the Vale.  Petyr Baelish and Lysa are wed; however, Lysa becomes jealous when she witnesses Littlefinger kissing her niece. Lysa later attempts to murder Sansa, but she is saved once again by Baelish, who kills Lysa.