- You may be looking for the Klingon-Cardassian Alliance of the Mirror Universe.
The Alliance was a group of ships led by the USS Voyager. During Voyager's flight home, it encountered an anomaly called "The Void", where all resources were virtually nonexistent, and piracy sustained everyone there. Captain Kathryn Janeway formed this alliance, which was based on the same principles as the Federation, though not all trapped species joined. By combining their efforts and technology to create a polaron modulator, and with some additional help from the natives of the Void, the Alliance succeeded in escaping. (VOY: "The Void")