Sam is approached by Daenerys Targaryen, who thanks him for saving Jorah's life. However, Sam is grief-stricken when Daenerys reveals that she executed Randyll and Dickon for refusing to pledge fealty to her. Bran tells Sam to reveal to Jon his true parentage. As the preparations are being made for battle against the approaching army of White Walkers, Sam presents the Valyrian Steel sword of House Tarly, Heartsbane, to Jorah. Sam participates in the battle against the undead and is saved by Edd. After witnessing Edd being killed by a wight, Sam flees back into Winterfell. He ultimately survives the Long Night and participates in the funeral ceremony afterwards. When Jon travels south with Daenerys' army, Sam bids him farewell; it is revealed that Gilly is pregnant with Sam's son.