The Starks and allies defeat the Bolton forces in the "Battle of the Bastards" reuniting Sansa Stark and Jon Snow, who is proclaimed the King in the North, while Ramsay Bolton is killed. In Essos, Tyrion Lannister rules Meereen while Daenerys Targaryen is held captive by the Dothraki, after which she burns the Khals, emerges from the flames of their temple alive leading the surviving Dothraki to pledge her their loyalty. At King's Landing, Margaery Tyrell capitulates to the High Sparrow, who becomes more powerful by influencing King Tommen. The imprisoned Cersei avoids her trial by destroying the Great Sept with wildfire, killing the Sparrows, her uncle, and the Tyrells. Tommen commits suicide in the wake of the blast, and his mother is crowned Queen of the Seven Kingdoms. Ellaria Sand and Oberyn Martell's daughters kill Doran and Trystane Martell and seize control of Dorne. Arya Stark finishes her assassin training and returns to Westeros to resume her revenge list. Bran Stark becomes the Three-Eyed Raven, escapes the White Walkers, and returns to the Wall. Yara Greyjoy fails in her bid to be queen of the Iron Islands, so she and Theon ally with Daenerys. Varys secures an alliance for her with Olenna and the Dornish.