The Matrix Revolutions
Neo walks up to the head of the machines, whose name is Deus Ex Machina. He says that Smith has gotten out of control and that he is the only one that can stop him. He says that he wants peace, so the machines stop attacking Zion. Neo and Smith start fighting again. This time Neo cannot beat him like he did with Bane. At the end, he says, "It was inevitable" and allows Smith to touch him and acquire him. Smith is then destroyed, as his only purpose was to balance Neo, who is now gone.