Star Trek: Survival
Star Trek: Survival is a storyline set in an alternate universe where the Federation lost the Dominion War.
This timeline remains consistent with the Prime timeline in the television shows and movies until late 2374 and the events of the DS9 episode In the Pale Moonlight. The divergence begins when Captain Sisko and Elim Garak attempt to bring the Romulans over to the side of the United Federation of Planets.
The Romulans see through the second subterfuge and they renege on the non-aggression treaty to instead side with the Dominion. The tide does not turn in favor of the UFP and its allies, and a bloody war drags on. It destroys countless installations and lives.
In early 2379, staunch allies in the form of the Klingons withdraw from the alliance and all return home to their own space to hunker down and hold out against the Dominion siege. This leaves what remains of Starfleet even weaker, and the war ends with the UFP's surrender toward the end of 2379.
Fearing an outcome such as this, an evacuation was prepared for after the departure of the Klingons. With the Dominion's "mercy," this fleet is gathered together and what remains of the UFP and Starfleet decide to get as far away from the Dominion as they can: they plan to head to the Delta Quadrant to find a new home and a new life.