content: 
  ==Production==
  The episode was written by series co-creators David Benioff and D. B. Weiss.
  "The Queen's Justice" was written by the series' creators, David Benioff and D. B. Weiss, and directed by Mark Mylod, his second of two episodes for this season. Mylod joined the series as a director in the fifth season, working on "High Sparrow" and "Sons of the Harpy".
  Indira Varma made her final appearance as Ellaria Sand.
  "The Queen's Justice" was the final episode for actress Indira Varma, who had played Ellaria Sand since the fourth season. "The Queen's Justice" was also the last episode for recurring cast members Diana Rigg and Rosabell Laurenti Sellers, as Olenna Tyrell and Tyene Sand were killed. The episode featured the return of Mark Gatiss as Tycho Nestoris, who was last seen in season 5's "The Dance of Dragons".
  Kit Harington spoke about the scene he shot with Peter Dinklage in Spain, saying "It was a beautiful location with 50 mph winds and I was wearing a cape next to a cliff—There was a danger of me being blown off! I'm not sure it's the way I would have wanted to go."
  Indira Varma and Rosabell Laurenti Sellers's last scene was technically difficult for the actresses, because they were shackled. The shackles were felt-lined but tight, and Varma and Sellers ended up "bruised and battered" due to the physical intensity of their acting. Varma had to be cut from the shackles at the end of the day.