Fans shocked by the demise of King Joffrey in tonight's episode of Game of Thrones should see it as pay back for The Red Wedding, says the series' creator George RR Martin.

Speaking about the second episode of season four, which saw King Joffrey meet his maker at his very own wedding feast, Martin has said: "Joffrey’s death was in some ways a counterweight for readers to the death of Robb and Catelyn [Stark]."

"Every once in a while you have to give the good guys a victory — where the guys who are perhaps a lighter shade of grey have a victory over the guys who are a darker shade of grey," Martin continued to Entertainment Weekly. "The Red Wedding and this — fans call this the Purple Wedding — occur in the same book. In the TV show, it’s separate season... It shows that yes, nobody is safe—sometimes the good guys win, sometimes the bad guys win."

The manner in which Joffrey died has left fans of the TV searching for answers. Did he choke? Was he poisoned? By the pie or by the wine? If so, who did it?

And, according the Martin, that's just the reaction he was after. "I wanted to make it little bit unclear what exactly has happened here, make the readers work a little to try and figure out what has happened," he said.

What do you think happened?

Game of Thrones continues on Mondays at 9:00pm on Sky Atlantic.

Follow @RadioTimes