"What You Leave Behind" is the series finale of the television show Star Trek: Deep Space Nine, the 175th and 176th episodes, 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 the week of May 31, 1999.
The combined Federation-Klingon-Romulan Alliance fleet prepares for the final battle over Cardassia Prime
Ira Steven Behr co-wrote the episode; he was the showrunner of Star Trek: Deep Space Nine and wrote 53 episodes overall
Star Trek: Deep Space Nine
Star Trek: Deep Space Nine (DS9) is an American science fiction television series created by Rick Berman and Michael Piller. The fourth series in the Star Trek media franchise, it originally aired in syndication from January 3, 1993, to June 2, 1999, spanning 176 episodes over seven seasons. Set in the 24th century, when Earth is part of a United Federation of Planets, its narrative is centered on the eponymous space station Deep Space Nine, located adjacent to a wormhole connecting Federation territory to the Gamma Quadrant on the far side of the Milky Way galaxy.
Marc Alaimo, Armin Shimerman and Colm Meaney, who portrayed the characters of Gul Dukat, Quark and Miles O'Brien, respectively
Nana Visitor and René Auberjonois, who portrayed the characters of Kira Nerys and Odo, respectively
Chase Masterson (left) portrayed the recurring character Leeta on the series; Nicole De Boer (right) played Ezri Dax, a main character introduced in the seventh season.
Avery Brooks directed several episodes in addition to his lead role of Sisko.