Trinity and Neo fly to the machine city to try and stop the war, but Trinity is killed. Neo sacrifices himself to delete Agent Smith, and the machines leave Zion as the Matrix is rebooted to its previous version. The movie ends with the Oracle predicting they haven't seen the last of Neo.