content: 
  ===Writing===
  George R. R. Martin, author of the ''A Song of Ice and Fire'' novels, scripts one episode per season.
  The episode was written by George R. R. Martin, author of the novels of the ''A Song of Ice and Fire'' saga that the show adapts. "The Bear and the Maiden Fair" is based on material from the third book of his series, ''A Storm of Swords'', adapting chapters 42 to 46 (Jon V, Daenerys IV, Arya VIII, Jaime VI and Catelyn V).
  In some of the scenes, Martin had to take into account the changes done by the production to some of his original plots or characters, writing scenes that could never happen in the novels: the books have Talisa's counterpart stay in Riverrun instead of following Robb, Melisandre never interacts with Gendry, and Sansa does not get to confide with Margaery.
  Martin initially titled the episode "Autumn Storms", because it was supposed to be raining in many of the scenes. When he was forced to change it because most of the rains had been cut from his script in pre-production, he came up with the title "Chains", that worked both in a literal and metaphorical level. However, later on, the final scene including the bear that had been originally written by showrunners Benioff and Weiss for the next episode was incorporated, and the episode was given its final title.