Full story
In 2293, the Excelsior, under Captain Sulu, discovers that Praxis, the Klingons' moon, has blown up in a mining accident. Without it, their homeworld is doomed and the Empire falls into crisis. The Klingons can no longer afford war and seek peace. Starfleet sends the Enterprise to pick up Chancellor Gorkon and bring him to Earth for talks. Captain Kirk, who never forgave the Klingons for killing his son David, hates the assignment.
The two ships travel together, and their crews share a tense dinner. That night, the Enterprise seems to fire torpedoes at Gorkon's ship and knock out its gravity. Two men in Starfleet gear beam in, kill several crew and mortally wound the chancellor. Kirk surrenders to avoid war and goes aboard with McCoy to try to save him, but Gorkon dies. General Chang arrests them, and a Klingon court sentences both to life on Rura Penthe, a frozen prison planet. Gorkon's daughter Azetbur takes over and keeps the peace process alive. The Federation sends no rescue so it won't risk a war.
In the mines, Kirk and McCoy meet Martia, a shapeshifter who offers an escape. It's a setup to make their deaths look accidental. When the betrayal comes out, Martia turns into a copy of Kirk and fights him, until the prison governor kills her. Spock has taken command, investigates and rescues them. He concludes the Enterprise never fired and hunts for the assassins, only to find them dead. A trap in sickbay exposes the accomplice: Valeris, Spock's protégé. In a forced mind meld, he learns that Federation, Klingon and Romulan officials are plotting against the peace. The torpedoes came from Chang's ship, the only one that can fire while cloaked.
The Enterprise and the Excelsior race to Khitomer, where the conference is held. Chang's ship attacks and damages the Enterprise. Spock and McCoy modify a torpedo to follow the enemy's engine exhaust, which gives away its position. The two ships destroy it, and the crews beam down and stop the attempt on the Federation president's life.
Afterward, Starfleet orders the Enterprise home to be decommissioned. Kirk decides to take her out on one last cruise and notes in his log that a new generation will carry on their work.

