<P> His act worsens the situation with the Lannisters' war effort as his uncle Jaime is captured by the Starks and his uncles Renly and Stannis have challenged his claim to the Iron Throne . He frequently orders his Kingsguard to beat Sansa . His cruelty and ignorance of the commoners' suffering makes him unpopular after he orders the City Watch to kill all of his father's bastard children in King's Landing which would later lead to a riot where he is almost killed . When Stannis attacks King's Landing, Joffrey serves only as a figurehead and avoids the heavy fighting . When the battle eventually turns in Stannis' favor, Cersei calls her son into the safety of the castle, damaging the morale of his army . The battle is only won by his uncle Tyrion and his grandfather Tywin, aided by the forces of House Tyrell . To cement the alliance between their families, Joffrey's engagement to Sansa is annulled so he can marry Margaery Tyrell . </P> <P> The marriage is yet to take place, and rifts are growing between Joffrey and his uncle and grandfather, who are (in their respective ways) rebutting his cruelty . He also seems to take little interest in his bride, but is amazed and altered by her ways of winning the people's favor, in which he takes part . At Tyrion and Sansa's wedding, he humiliates his uncle and is outraged when his uncle threatens him after he commands him to consummate their marriage . Tyrion only avoids punishment when his father Tywin assures Joffrey that his uncle was drunk and had no intention of threatening the king . Later after the events of the "Red Wedding", Joffrey gleefully plans on serving Sansa her recently deceased brother's head, when Tyrion and Tywin are outraged . Tyrion threatens Joffrey once again, and later Joffrey turns on Tywin, who responds by commanding Joffrey to be sent to his room, much to Joffrey's chagrin . </P> <P> Joffrey finally marries Margaery . During his wedding feast in the gardens of the Red Keep, he presents an extremely offensive play of "The War of the Five Kings," with each of the kings played by dwarves, to humiliate his uncle . He also repeatedly torments Tyrion and Sansa, forcing the former to be his cupbearer . At the height of festivities Joffrey is suddenly overcome by poison, and he dies . His uncle Tyrion is accused and arrested . It is confirmed, however, he was poisoned by Olenna Tyrell, with assistance from Petyr Baelish and Dontos Hollard, as she wanted to protect Margaery from the physical and emotional abuse that Joffrey had very clearly inflicted on Sansa . Olenna later confides to Margaery that she would never have let her marry "that monster". Following Joffrey's funeral, his younger brother and heir, Tommen, is crowned King and proceeds to marry Joffrey's widow Margaery . </P> <P> Jack Gleeson has received positive reviews for his role as Joffrey Baratheon in the television series . In 2016, Rolling Stone ranked the character #4 in their list of the "40 Greatest TV Villains of All Time". Author Martin described Joffrey as similar to "five or six people that I went to school with...a classic bully...incredibly spoiled". </P>

Who killed king joffrey in game of thrones