<Tr> <Td> ← Previous "The Dogs of War" </Td> <Td> Next →--</Td> </Tr> <Tr> <Td_colspan="2"> List of Star Trek: Deep Space Nine episodes </Td> </Tr> <P> "What You Leave Behind" is the series finale of the television show Star Trek: Deep Space Nine, the 175th and 176th overall episodes, and the 25th and 26th episodes of the seventh season . The episode was written by showrunner Ira Steven Behr and Hans Beimler and directed by Allan Kroeker . It originally aired on June 2, 1999 . </P> <P> Set in the 24th century, the series is centered on Deep Space Nine, a space station located near a stable wormhole between the Alpha and Gamma quadrants of the Milky Way Galaxy . The final episode of the series, "What You Leave Behind" sees the end of the Dominion War as the alliance of Starfleet, the Klingons, Romulans and rebel Cardassians launch a final attack against the Dominion on Cardassia Prime, as well as the resolution of Dukat and Kai Winn's dealings with the Pah - wraiths on Bajor . </P>

Final episode of star trek deep space nine