On Deep Space Nine, Bashir wakes up with Ezri, O'Brien talks with his family about leaving the station after the war, and Sisko comforts a pregnant, nauseated Kasidy. It is the morning of the day the crew will leave for the final push in the war. While heading for battle on the Defiant, Sisko receives a vision of his prophet-mother Sarah. She claims that his most important challenge is "not before you, but behind you." The battle between the Jem'Hadar/Breen/Cardassian fleet and Starfleet/Klingon/Romulan fleet begins. Kira, Garak, and Damar, hiding on Cardassia Prime as insurgents, incite a worker revolt and power outage, which cuts off communication between the Dominion Fleet and the command center housing Weyoun and the diseased Founder. In retaliation, the Jem'Hadar wipe out an entire Cardassian city.
The insurgents are about to be executed by a team of Jem'Hadar and Cardassian soldiers, but are saved when the Cardassians turn on them in revenge. Midway through the space battle, the Cardassian ships also switch sides, which Weyoun discovers when communications are restored. As an ultimate retaliation, the Founder orders the eradication of the Cardassian race, and the Jem'Hadar begin leveling the capital. Kira and the insurgents storm the command center, capture the Founder, and kill Weyoun, but Damar is killed. Though the Dominion's Alpha Quadrant forces are facing defeat, the Founder will not surrender, presumably to inflict so much damage that the Alpha Quadrant powers will be deterred from attacking the Dominion.
Sisko prepares for a costly assault on Cardassia Prime. Odo beams to the command center and links with the Founder, curing her disease. She orders her forces to surrender. Odo explains to Kira that he has agreed to cure the other Founders, but needs to join them permanently, to eventually persuade them to trust solids instead of dominating them. Bashir says farewell to Garak, who stays to help rebuild Cardassia. Garak is skeptical that they will ever meet again, because they live "in uncertain times." (The final verbal exchange between Bashir and Garak was cut from the re-run version of the episode.)