"The Rains of Castamere" is the ninth and penultimate episode of the third season of HBO's medieval fantasy television series Game of Thrones, and it is the 29th episode of the series. The episode was written by executive producers David Benioff and D. B. Weiss, and it was directed by David Nutter. It first aired on June 2, 2013.