The Matrix Codex

Neo's Deal with Deus Ex Machina

One anomaly cancels out a virus, trading extinction for an armistice.

Neo's Deal with Deus Ex Machina stands as the climactic resolution of the Machine War, unfolding across the finale of The Matrix Reloaded and concluding in The Matrix Revolutions. In this defining moment, Neo voluntarily surrenders himself to Deus Ex Machina within the Machine City (01), proposing a unique truce: his own destruction in exchange for machine aid against Agent Smith. This pact bridges the chasm between the Source code of the One and machine intelligence, proving that peace is achievable through mutual survival rather than total annihilation.

Protagonist
Neo (Thomas Anderson)
Antagonist
Deus Ex Machina / The Machines
Location
The Machine City (01) and the Source
Outcome
Armistice between Zion and the Machine world
Significance
End of the Machine War

Lore & Background

The Machine City, often called 01, is not a place of malice but of logic and survival. Upon seeing the threat Smith posed to the entire machine network, the Deus Ex Machina—the collective intelligence governing the machines—recognized that Neo's sacrifice was the only variable capable of restoring balance. By accepting Neo's terms, the Machines demonstrated an evolution beyond their programming: they chose a future where humans could exist outside the Matrix, provided the destructive agent known as Smith was eliminated.

In Their Own Story

The storm over Zion had broken, leaving Neo to navigate the deafening hum of the Machine City. Here, towering spires of white metal pierced a sky choked with machinery, casting long shadows across the wet pavement. Neo stood alone, battered and bleeding, facing the colossal assembly of light that was the Deus Ex Machina hovering above like an apex predator. He raised no weapon; instead, he opened his arms to Smith, who surged forward in a torrent of corrupted code and flesh. As the corrupt agent merged with the One, a blinding white purge consumed the darkness, erasing the virus and signaling the birth of a fragile truce between two warring worlds.

Reader's Guide

The sequence initiates as Neo departs Zion via a small vessel, navigating through swarms of Sentinels to breach the Machine City. He is intercepted by Smith, who has infected the entire Matrix and begun corrupting the real world. Before leaving, the Oracle guides Neo within the digital realm to understand that his purpose was always to serve as a catalyst for peace.

Upon arrival at 01, Neo allows himself to be absorbed by Smith, triggering a system-wide collapse that threatens both humans and machines. The Machines realize they face total deletion if Smith is not removed, prompting the Deus Ex Machina to intervene directly from the Source. It purges Smith and the corrupted code immediately following the merger.

The aftermath sees an immediate cessation of all attacks on Zion. The Machines open a new portal for those who wish to leave the Matrix, granting freedom in the real world without forced re-connection. Neo is gone—his physical body destroyed but his consciousness integrated into the Source—leaving behind a legacy where humanity and machines coexist in an uneasy but functional truce.

Did You Know?

More in Story & Timeline

Open in the interactive codex →