Star Trek First Contact
Captain Jean-Luc Picard (Patrick Stewart), once assimilated by the alien Borg, now senses that they are about to return. He is proved correct when the Collective engage the Enterprise E in battle, only to escape through a temporal vortex into the Earth's past. Picard and his crew glimpse an alternative Earth which is dominated by the Borg and, in an attempt to find out how the Borg have altered the timeline, follow them back to the year 2063, one day before Zefram Cochran made the first warp drive journey.
The time is the 24th century and the ship is the newly commissioned Enterprise-E. It's captain, Jean-Luc Picard, has been ordered not to interfere in a combat between a Borg Cube and ships from the Federation. However, seeing the Federation is about to lose, Picard ignore his orders and take command of the defending fleet. With his knowledge of the weak spot of the Cube, they destroy it.