A Storm of Swords
The episode was written by George R. R. Martin, author of the "A Song of Ice and Fire" novels. Chapters adapted from "A Storm of Swords" to the episode were part of chapter 9 (Bran I), and chapters 59 and 60 (Sansa IV and Tyrion VIII).