the command center. In retaliation, the Founder in command orders the Jem'Hadar to wipe out a Cardassian city. Kira, Garak, and Damar are captured, but as the Jem'Hadar prepare to kill them, Cardassian soldiers turn on the Jem'Hadar. As Starfleet and their allies are suffering many losses, the Cardassian ships switch sides, turning the tide of the battle. When the Founder discovers this, she orders the eradication of the Cardassian race, and the Jem'Hadar begin leveling cities. The alliance fleet prepares to mount a final offensive. Kira and her team storm the command center, capturing the Founder; Damar is killed in the process. The Founder initially refuses to surrender, choosing instead to make the battle as costly as possible for the alliance. Odo beams to the command center and persuades the Founder to link with him, joining their liquid bodies. He cures her of the Changeling disease, and she orders the Dominion forces to surrender. Odo tells Kira that he has agreed to cure the other Founders but needs to join them permanently. The Founder agrees to stand trial for war crimes and signs an armistice to end the war. Back on DS9, the crew celebrates at Vic Fontaine's simulated 1960s lounge. Meanwhile on Bajor, Dukat and Winn travel to the Fire Caves with an ancient book to release the Pah-wraiths. Winn poisons Dukat as a sacrifice, expecting to become the wraiths' emissary; they possess Dukat instead, resurrecting him. On DS9, Sisko suddenly becomes aware that he must go to the Fire Caves. Once there, he attacks Dukat, who easily subdues him with the Pah-wraiths' powers. Winn tries to destroy the book, but Dukat kills her. While Dukat is distracted, Sisko attacks Dukat, falling with him and the book into the fiery chasm. Sisko finds himself in the wormhole, where Sarah tells him that the Pah-wraiths will never emerge again. The DS9 crew is puzzled by Sisko's disappearance until he comes to his wife Kasidy Yates in a vision; he assures her he will return, though he doesn't know when. Many of the crew go their separate ways: O'Brien will teach at Starfleet Academy, and Worf is appointed the Federation ambassador to the Klingon Empire. Kira takes Odo to the Founders' planet, where he joins the Great Link and cures their disease. Kira returns to DS9, now the station commander, and she and Sisko's son Jake gaze out a window