content: 
  ==== ''A Storm of Swords'' ====
  Tywin assumes his role as Hand of the King, demoting Tyrion to Master of Coin. He forces Tyrion to marry Sansa Stark, though his efforts to have Cersei wed to Willas Tyrell are rebuffed. Having learned that Robb has invalidated a marriage proposal to House Frey by marrying Jeyne Westerling, Tywin enters into communications with Lord Walder Frey and Roose Bolton (who has lost faith in Robb after Theon Greyjoy's capture of Robb's castle Winterfell). The three conspire to have Robb and his army slaughtered while camped at The Twins for Edmure Tully's wedding, and the War of Five Kings results in victory for House Lannister. However, Joffrey is poisoned soon after during his own wedding.   Tyrion is accused of the murder, ultimately being found guilty and sentenced to death. Jaime and Varys release Tyrion from his cell, Jaime confessing that he felt compelled to do so for lying about Tysha, Tyrion's first wife, who had been wrongly stated by Tywin to be a prostitute and gang-raped by Tywin's guards.  Enraged, Tyrion enters Tywin's quarters through a secret tunnel, only to find his former mistress Shae in Tywin's bed.  He strangles her with the Hand's necklace, then confronts Tywin with a crossbow while he is on the privy, demanding to know what happened to Tysha.  When Tywin repeatedly and scornfully dismisses Tysha as a "whore," Tyrion fatally shoots him with the crossbow.