The Time Machine is a 2002 American post-apocalyptic science fiction film loosely adapted from the 1895 novel of the same name by H. G. Wells. It follows a 19th-century inventor who unintentionally travels 800,000 years into the future, encountering two warring factions of humanity.