In the 23rd century, a Starfleet monitoring station, Epsilon Nine, detects an alien entity, hidden in a massive cloud of energy, moving through space toward Earth. The cloud easily destroys three of the Klingon Empire's new K't'inga-class warships when they fire on it and disintegrates Epsilon Nine when it tries to investigate. On Earth, the starship Enterprise is undergoing a major refit; its former commanding officer, James T. Kirk, has been promoted to Admiral and works in San Francisco as Chief of Starfleet Operations. Starfleet Command assigns Enterprise to intercept the cloud entity as the ship is the only one within range, requiring its new systems to be tested in transit.