<P> Sansa kneels and begs for Joffrey to spare her father's life and give him a chance to confess the treason . Joffrey promises Sansa that if Eddard truly does confess, he would be merciful . Reluctant at first, Eddard begrudgingly accepts Joffrey as the rightful King in order to spare Sansa's life . However, Joffrey, though pleased by Eddard's "confession", says that he has no acceptance for traitors and instead beheads Eddard and later forces Sansa to look upon her father's head . </P> <P> Joffrey is briefly seen in A Clash of Kings (1998). He rules with whim and caprice, proving difficult for even his mother to control . Sansa becomes imprisoned to his will, and he frequently has his guards beat her when she displeases him . When Stannis Baratheon attacks King's Landing, Joffrey leaves the battlefield, damaging the morale of his army . The battle is only won by his uncle Tyrion's use of wildfire and his grandfather Tywin's last - minute counterattack aided by the forces of House Tyrell . </P> <P> Joffrey sets aside his earlier betrothal to Sansa Stark in favor of Margaery Tyrell, cementing an alliance between the Lannisters and House Tyrell . 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 . During his wedding feast in the throne room, 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 conclusion of the dinner, however, Joffrey's wine is poisoned, and he dies in an event known as "The Purple Wedding," in which Tyrion is falsely accused and arrested by Cersei in A Storm of Swords (2000). It is later revealed that Lady Olenna Tyrell and Lord Petyr Baelish were the true perpetrators, with assistance from royal fool Ser Dontos Hollard, who successfully smuggles Tyrion's wife Sansa out of King's Landing before either of them can be caught and tried for Joffrey's murder . </P> <P> Joffrey is mentioned a few times in the later novels . </P>

When does joffrey die in the game of thrones