A Storm of Swords
"Oathkeeper" was written by Bryan Cogman based on "A Storm of Swords". Reviewer Walt Hickey of FiveThirtyEight notes that the episode "contained the final scene of Jaime Lannister’s ninth "Storm of Swords" chapter. But lots of material from that chapter hasn't been on the show yet, so I reasoned that he has completed only eight." In addition to chapter 72 (Jaime IX), some of the content from this episode is also found in "A Storm of Swords" chapters 61, 68, and 71 (Sansa V, Sansa VI, Daenerys VI).