Three years into its five-year voyage, the USS Enterprise arrives at Starbase Yorktown to replenish dwindling supplies while the crew takes shore leave. Captain Kirk and the crew of the Enterprise encounter an alien warrior race when marooned on a distant planet after the destruction of their spaceship.