Full story
The Enterprise-A is freshly commissioned, and the crew is enjoying leave after its shakedown cruise. Kirk, Spock and McCoy go camping in Yosemite. The break ends when Starfleet sends the ship to Nimbus III, the "planet of galactic peace," a neutral world set up so the Federation, the Klingons and the Romulans can talk. Three diplomats, one from each side, have been taken hostage. Captain Klaa, an ambitious Klingon, learns of the mission and decides to chase Kirk for personal glory.
On Nimbus III, the crew finds out the man behind it is Sybok, a renegade Vulcan. Spock then admits Sybok is his half-brother. The kidnapping was bait: Sybok wants a starship to reach Sha Ka Ree, a legendary planet he believes lies beyond the Great Barrier at the center of the galaxy, and where he says God waits.
To take the Enterprise, Sybok uses a rare gift. He finds each person's deepest pain and takes it away through a mind meld, and wins over nearly everyone. McCoy's pain is that he helped his sick father die, never knowing a cure was close. Spock's is his father's rejection, for being too human. Kirk turns the offer down. To him, the pain is part of who he is.
The Enterprise breaks through the Barrier, not noticing Klaa's ship following. Sybok, Kirk, Spock and McCoy take a shuttle down to a barren planet. A glowing light shifts through many religious figures and settles into a bearded face. Sybok asks for its wisdom. The entity wants to know how they crossed the Barrier and says it will use the ship to carry its wisdom across the universe. Kirk asks what a god would want with a starship. The entity attacks, and they realize it is a malevolent being, locked up there long ago, with the Barrier as its cell.
Sybok sees he was wrong, apologizes and attacks the entity to buy the others time. The Enterprise fires a photon torpedo, and only Sybok dies. Klaa's ship appears, damages the Enterprise and leaves Kirk alone with the creature. The Klingon ship destroys it. Kirk is beamed aboard, and Spock is already there: he talked General Korrd, one of the hostages, into ordering Klaa to stand down. The trio goes home and resumes the camping trip.

