Spock (Zachary Quinto) rams older Spock's (Leonard Nimoy) ship containing the red matter against Nero's ship and Spock is beamed up by Scotty in the nick of time. Kirk (Chris Pine) rescues Captain Pike and they're also beamed away from Nero's ship. The collision of Spock's and Nero's ships sets off the red matter and Nero's ship is taken into a black hole. Kirk gives Nero and his crew the chance to be rescued but Nero refuses; the Enterprise fires at Nero's ship. The Enterprise is almost pulled in to the black hole but Scotty (Simon Pegg) ejects the warp core from the ship and the explosions give the Enterprise an extra boost and the ship escapes. Kirk is given a medal and command of the Enterprise for his efforts. Older Spock (a.k.a. Ambassador Spock) suggests his younger self should stay in Starfleet and not always do what is logical, but what he feels is right. The Enterprise, with Kirk as captain, Spock as First Officer and the rest of the familiar characters aboard, goes on its first voyage. Ambassador Spock narrates the famous words "Space: the final frontier. These are the voyages of the star ship Enterprise..."
Continuity mistake: At the end of the film when Kirk is being awarded his medal, behind the Federation Counsel you can see 3 flags in the background- the center flag is the California state flag. After Kirk shakes Pike's hand, and the camera pans up and back, the California flag is hanging significantly different so that it is no longer recognizable, seeming almost blank white. As the ceremony is indoors and all attending are standing motionless, this flag should not have moved. (01:56:25)wizard_of_gore