D. B. Weiss
The episode was written by the showrunners David Benioff and D. B. Weiss, based on the original book by George R. R. Martin.