Star Trek: First Contact is a 1996 American science fiction film directed by Jonathan Frakes and based on the franchise Star Trek. It is the eighth film in the Star Trek film series, as well as the second to star the cast of Star Trek: The Next Generation. In the film, the crew of the USS Enterprise-E travel back in time from the 24th century to the mid-21st century in order to stop the cybernetic Borg from conquering Earth by changing their past.