In 2293, the Klingon Empire faces imminent economic collapse following the catastrophic destruction of their energy moon, Praxis. Forced to seek peace with their long-time adversaries, the United Federation of Planets, Chancellor Gorkon initiates diplomatic overtures. Starfleet orders Admiral James T. Kirk and the crew of the USS Enterprise to escort Gorkon to Earth. Kirk, whose son was murdered by Klingons, harbors deep-seated prejudice and bitterly resents the assignment. During a tense dinner aboard the Enterprise, cultural divides are painfully exposed. Later that evening, the ship seemingly fires upon a Klingon bird-of-prey. In the confusion, two conspirators wearing Starfleet boots and artificial gravity-boots beam aboard, assassinating Gorkon in a hail of phaser fire. Kirk and Dr. Leonard McCoy beam over to render aid, but they are framed for the murder, arrested, and subjected to a dramatic show trial on Kronos. Sentenced to lifelong imprisonment at Rura Penthe, a brutal frozen penal asteroid, the duo faces harsh labor and execution plots. However, with the help of a sympathetic shape-shifting alien named Martia, they escape, though Martia ultimately betrays them. Meanwhile, back aboard the Enterprise, Spock assumes command and spearheads a covert investigation. Refusing to let their friends die without cause, Spock and the crew meticulously analyze
photographic evidence, discovering that the assassination was executed by conspirators from both Starfleet and the Klingon Empire who desperately desire to sabotage the peace talks. The assassins used boots equipped with gravity shoes to stage the zero-gravity murder, and the Enterprise's own torpedo logs reveal a cover-up. Spock traces the vessel used in the attack to Khitomer, the site of the upcoming
peace conference. Realizing the danger, Spock and the crew resign their commissions to rescue Kirk and McCoy and intercept the assassins. They arrive just as a shadowy cabal of high-ranking Federation, Klingon, and Romulan officers attempts to assassinate the newly appointed Federation President. A frantic, multi-ship space battle ensues. The Enterprise joins forces with Captain Sulu’s ship, the USS Excelsior, to penetrate the defensive shields of the cloaked Klingon vessel firing upon the conference. Kirk and his crew beam directly onto the conference floor, exposing General Chang as the traitorous mastermind. Chang is killed when the combined fire of the Enterprise and Excelsior destroys his ship. With the conspirators neutralized, the Khitomer Accords are successfully signed, securing a historic and fragile peace. As the Enterprise crew returns to space, Starfleet orders them to report for decommissioning. Choosing instead to answer one final call to adventure, Kirk sets course for the uncharted cosmos, bidding a poignant final farewell to the audience as the iconic ship flies off into the sunset.