Full story
The Enterprise arrives at Starbase Yorktown for resupply and shore leave. It is the third year of the five-year mission, and Kirk is searching for meaning in it: he applied for promotion to vice admiral and recommended Spock as his replacement. Sulu reunites with his husband and daughter, and Spock and Uhura take a break from their relationship. Spock hears that Ambassador Spock, his counterpart from another timeline, has died.
An escape pod drifts out of an uncharted nebula, and the Enterprise is sent to rescue its occupant, Kalara, who says her ship is stranded on Altamid. On arrival, a huge swarm of small ships surrounds the Enterprise and tears it apart. The swarm's leader, Krall, boards with his followers and kills many crew members looking for the Abronath, a relic Kirk brought back from a mission. Kirk orders everyone to abandon ship, and the saucer section crashes on Altamid.
On the planet, Krall captures Sulu, Uhura and other survivors. Kirk and Chekov, with Kalara, find the saucer. Kirk realizes she knew about the ambush and tricks her into revealing she is Krall's spy. McCoy searches for survivors with a wounded Spock, who tells him he ended things with Uhura and plans to leave Starfleet to help the Vulcans. Jaylah, a scavenger who escaped Krall, rescues Scotty and takes him to her home, the old USS Franklin, a Starfleet ship reported missing over a century earlier. Krall forces the captives to hand over the Abronath and uses it to finish an ancient bioweapon. He means to kill Yorktown's inhabitants and use the base to attack the Federation. Kirk and the others free the crew, but Krall leaves with the weapon and the swarm.
The survivors power up the Franklin and chase him. They figure out the swarm is vulnerable to high frequencies, and they bring it down by blasting "Sabotage" by the Beastie Boys over the radio. From the ship's logs, Uhura, Kirk and Scotty learn that Krall is Balthazar Edison, the Franklin's former captain. A soldier from before the Federation, he rejected unity with old enemies. When a wormhole stranded his crew on Altamid, the survivors used the technology of the vanished natives to extend their lives, at the cost of the others, and repurposed the mining drones into the swarm. He believed the Federation had abandoned them, and he wants to destroy it. Kirk chases Edison into Yorktown's ventilation system, and Edison activates the weapon. Kirk ejects it into space along with him, and the weapon disintegrates Edison. Spock and McCoy pull Kirk to safety just before he is sucked out too.
Kirk turns down the promotion, his love of adventure back. Spock, after receiving a photograph of Ambassador Spock's crew, chooses to stay in Starfleet and renews things with Uhura. Jaylah is accepted to the Academy. Everyone celebrates Kirk's birthday and watches the new Enterprise-A being built.
