Skip to content
What's After the Movie?
Plot summary

Code 46 (2004) Plot Summary & Timeline

Code 46 (2004) movie poster

Code 46 is a 2004 sci-fi and drama film directed by Michael Winterbottom, running 1 hour 33 minutes. This page retells the whole story in 673 words (about 3 minutes to read) and covers 15 key events in order, 2 characters, where and when it is set and 3 themes. Looking for the cast, ratings and where to stream it? See the movie page for Code 46.

to read the plot summary
3 min
key events in the timeline
15
characters profiled
2
themes explained
3
Loading streaming availability…
Code 46 (2004) movie poster
Released
Runtime
1h 33m
Genres
Sci-Fi, Drama, Thriller
Original language
English
No spoilers

What Is Code 46 About?

The premise of Code 46 in 299 words, with nothing given away. The full story follows below.

In a neon‑lit, rain‑soaked Shanghai that feels both hyper‑modern and decayed, society is split between glittering urban districts and the forgotten outskirts. Access to the coveted city life is controlled by a strict system of health records called “papeles,” which have become the most valuable currency for identity and mobility. The city’s sleek towers and crowded alleyways pulse with a constant tension, a blend of high‑tech surveillance and an undercurrent of rebellion that makes every interaction feel charged with unease.

William Geld, an insurance fraud investigator, arrives in this world of regulated genetics and bureaucratic control with a single purpose: to audit the enigmatic corporation known as “The Sphinx,” the chief architect behind the papeles. His methodical, detail‑driven nature clashes with the city’s chaotic rhythm, forcing him to navigate a maze of corporate secrecy, hidden laboratories, and a populace whose very existence can be bought or erased. The tone is both sleekly futuristic and oppressively intimate, highlighting how personal ambition and systemic oppression intersect.

Amid his investigation, William encounters Maria Gonzalez, a young employee entangled in the same web of paperwork and suspicion. Their connection ignites a forbidden romance that blurs the line between professional duty and personal desire, offering a brief, luminous escape from the city’s relentless pressures. As their relationship deepens, the pair become increasingly aware that the stakes of their world extend far beyond simple fraud—the very fabric of identity is being manipulated, and the consequences ripple through every facet of life in Shanghai.

The film balances a moody, atmospheric visual style with a narrative that probes the ethics of a society where genetics and documentation dictate fate. It invites viewers to wonder how far one will go to protect love and truth when the very definition of self is controlled by an unseen, powerful code.

Full plot

What Happens in Code 46?

The complete story of Code 46, from the first scene to the last, in 673 words (about 3 minutes). Spoilers throughout. Names in the text link to 1 cast member page.

Spoilers ahead

In a dystopian future, society is starkly divided into two segments: the bustling urban environments and the neglected underclass living on the outskirts. This division is fortified by a system of health records known as “papeles,” acting as a gateway to the desirable cities.

William Geld, an investigator focused on insurance fraud, finds himself in Shanghai with the mission to interview individuals at the mysterious corporation known as “The Sphinx.” This organization is pivotal in producing the essential papeles. As William investigates, he becomes entangled with a young employee, Maria Gonzalez, who is accused of potential fraud. His professional detachment crumbles as he succumbs to his feelings, resulting in an illicit affair that blurs the lines between duty and desire. During one of their secret meetings, William discovers a forged document, which he promptly decides to exploit for his personal gain.

However, William’s superiors are not pleased with his approach, chastising him for his failure to identify the real culprit behind the forgery. Defiance surges within him as he calls for someone else to be dispatched to handle the case, hinting at the possibility of an accomplice. Unfortunately, his request is ignored, and he is left with the task of resolving the issue himself.

Back in Shanghai, William’s investigation leads him to an empty apartment previously inhabited by Maria. Only a mysterious medical appointment serves as a hint to her fate. When he visits the clinic, he uncovers that Maria was pregnant but had to terminate the pregnancy due to a breach of Code 46—a serious violation. This shocking discovery destabilizes William, compelling him to reconsider everything he knows about his connection to her.

Pushing further, William learns that Maria is slated for memory erasure, a procedure designed to obliterate her memories of the infraction. Leveraging his investigator credentials, he convinces the clinic to release her into his oversight, masquerading as a crucial witness in a fraud case. As he divulges to Maria the truth about her erased memories and his own ethical failings, her world is turned upside down, prompting him to sedate her in a bid to calm her distress.

While Maria rests, William discreetly collects a strand of her hair for an immediate DNA analysis, uncovering an extraordinary surprise: Maria is a genetically engineered clone of his mother, launching him into an existential crisis concerning his identity. Armed with this new information, William contemplates the possibility of returning to his family, only to realize that his 24-hour cover has expired, leaving him vulnerable to the authorities.

Facing the stark truth of his predicament, William realizes that obtaining a crucial papel from Maria is his only hope of returning home. Unfortunately, she grapples with unexpected changes in her job, complicating her efforts. As Maria embarks on a train journey to meet him, snippets of her past come flooding back, reawakening emotions that had been buried. In a surprising twist, William chooses to abandon his original plan, opting instead to stay with Maria.

Their adventure leads them to the ancient streets of Jebel Ali in the United Arab Emirates, where they secure a basic room. It is here that William explicates the entirety of the memory-erasure procedure, revealing both its implications and a hidden virus that triggers adrenaline in Maria whenever she encounters someone responsible for a Code 46 violation. Choosing to withhold the secondary effect of the virus from her, William fears the ramifications of this knowledge.

As they navigate their escape in a dilapidated vehicle, their attempts to evade capture ultimately fail, resulting in a catastrophic crash that leaves both William and Maria unconscious among the wreckage. When William stirs back to life in a Seattle hospital, he is encircled by his wife and child, devoid of any recollection of Maria or their shared experiences. Meanwhile, Maria’s sentence is much grimmer; she is cast away into the harsh desert, her memories of William distorted into an overwhelming obsession, forcing her to endure a painful existence devoid of his presence while still haunted by memories of their brief but impactful connection.

Timeline

Code 46 Timeline: Every Key Event in Order

15 key events in the order they happen, from “Dystopian Society Description” to “Maria's Grievous Fate”. 7 events name a place, across 6 locations.

  1. 1

    Dystopian Society Description

    In a dystopian future, society is starkly divided into two segments: bustling urban environments and the neglected underclass living on the outskirts. This division is controlled by a system of health records referred to as 'papeles,' which acts as a gateway to the desirable cities.

  2. 2

    William Geld's Investigation Begins

    William Geld, an investigator focused on insurance fraud, arrives in Shanghai with a specific mission to interview individuals at the mysterious corporation known as 'The Sphinx.' This organization plays a crucial role in producing the essential papeles that govern society's structure.

    Where:Shanghai

  3. 3

    William Meets Maria

    During his investigation, William becomes entangled with a young employee named Maria Gonzalez, who is accused of potential fraud. Despite his attempts to maintain professional detachment, he finds himself drawn to her, leading to an illicit affair that complicates his mission and emotions.

  4. 4

    Discovery of Forged Document

    While meeting Maria in secret, William discovers a forged document that represents a potential opportunity for exploitation. This discovery significantly alters his investigative path, pushing him into morally ambiguous territory as he contemplates his growing feelings for Maria.

  5. 5

    William's Defiance

    Despite uncovering vital information, William's superiors are not pleased with his methods and criticize him for not identifying the real culprit behind the forgery. Defiantly, he calls for backup, suggesting there may be an accomplice, but his request is ignored, leaving him to resolve the issue on his own.

  6. 6

    Maria's Fate Revealed

    William's investigation leads him to an empty apartment previously occupied by Maria, where a mysterious medical appointment raises questions. Upon visiting the clinic, he learns that Maria was pregnant but had to terminate her pregnancy due to a serious violation of Code 46.

    Where:Clinic

  7. 7

    Memory Erasure Discovery

    William uncovers that Maria is scheduled for memory erasure, a procedure designed to wipe her memories of the Code 46 infraction. Leveraging his investigator credentials, he manages to convince the clinic to release her to him, believing that he can protect her as a crucial witness.

    Where:Clinic

  8. 8

    William's Ethical Dilemma

    As he reveals the truth about Maria's erased memories and his own failings, William struggles with the consequences of their actions. Overwhelmed by her distress, he decides to sedate her to calm her, complicating their already tangled relationship further.

  9. 9

    Shocking Genetic Revelation

    In a shocking twist, while collecting a strand of Maria's hair for DNA analysis, William discovers that she is a genetically engineered clone of his mother. This revelation triggers an existential crisis for William as he grapples with what it means for his own identity.

  10. 10

    Plan to Obtain Crucial Papel

    Faced with the stark reality of his situation, William realizes that obtaining a vital papel from Maria is his only chance to get back home. However, Maria struggles with complications at work that jeopardize their plans, creating tension between them.

Show the other 5 events of Code 46
  1. 11

    Train Journey to Meet

    As Maria embarks on a train journey to meet William, suppressed memories from her past begin to resurface. These recollections awaken deep emotions, complicating her journey and drawing her closer to the truth about their relationship.

    Where:Train

  2. 12

    Escape to Jebel Ali

    William and Maria's adventure takes them to the ancient streets of Jebel Ali in the United Arab Emirates, where they find temporary reprieve in a basic room. Here, William explains the implications of the memory-erasure procedure and a hidden virus that affects Maria.

    Where:Jebel Ali, UAE

  3. 13

    Vehicle Crash During Escape

    As they attempt to escape in a dilapidated vehicle, William and Maria's efforts come to a disastrous halt when they crash. This catastrophic event leaves both of them unconscious, resulting in dire consequences for their fates.

  4. 14

    William Awakens in Hospital

    When William finally awakens in a Seattle hospital, he is greeted by his wife and child but is devoid of any recollection of Maria or their shared experiences. This awakening marks a turning point in his life, as he is unable to grasp the events that led him there.

    Where:Seattle Hospital

  5. 15

    Maria's Grievous Fate

    In stark contrast to William's recovery, Maria faces a much graver outcome. Abandoned in the desert, her memories of William twist into an overwhelming obsession, forcing her to endure a painful existence devoid of him while still haunted by their brief but intense connection.

    Where:Desert

Characters

Who Are the Main Characters in Code 46?

2 characters, among them William Geld and Maria Gonzalez: who each one is and the part they play in the story. Every profile links to the actor’s page.

  • Tim Robbins as William Geld in Code 46

    William Geld

    Played by Tim Robbins

    William is a conflicted investigator who becomes emotionally entangled with Maria, leading him to question his professional integrity. His journey illustrates the duality of duty and desire, as he grapples with personal ethics amidst societal constraints. By the film's end, William is forced to confront the profound impact of his choices on both his life and Maria's future.

    • 👨‍💼 Investigator
    • 💔 Lover
    • 🤔 Introspective
  • Om Puri as Maria Gonzalez in Code 46

    Maria Gonzalez

    Played by Om Puri

    Maria represents both innocence and complexity in a world that dehumanizes. As a genetically engineered clone facing the threat of memory erasure, she embodies the struggle for identity and autonomy. Her relationship with William profoundly alters her existence, leaving her to confront a future shaped by the memories they shared amidst his betrayal.

    • 👩‍💻 Employee
    • 🌱 Innocent
    • 💔 Heartbroken
Setting

Where and When Is Code 46 Set?

Code 46 is set in Shanghai, Jebel Ali, United Arab Emirates and Seattle (Dystopian future). Here is why the time and place matter to the story.

When

Dystopian future

This film takes place in a dystopian future where societal disparities are pronounced, and personal freedom is heavily restricted. Technology is omnipresent, manifesting in the form of health records that regulate access to valuable urban areas. The story unfolds against a backdrop of ethical dilemmas surrounding genetically engineered beings and memory manipulation.

Where

Shanghai, Jebel Ali, United Arab Emirates, Seattle

Shanghai serves as the bustling urban backdrop, characterized by its advanced technology and strict societal divisions. Jebel Ali, in the United Arab Emirates, presents a stark contrast with its ancient streets, offering a basic yet pivotal setting for William and Maria's escape. Seattle, the final destination, represents a return to William’s family, yet it is marked by a disorienting absence of his shared past with Maria.

  • 🏙️ City
  • 🌍 Dystopia
  • 🏜️ Desert
Themes

What Are the Themes of Code 46?

3 ideas the story keeps returning to, among them Love & Betrayal, Memory & Identity and Ethics & Morality.

  1. 01

    Love & Betrayal

    The theme of love and betrayal is central to the narrative, as William navigates his conflicting feelings for Maria despite professional obligations. Their illicit affair reveals the complexities of human emotions in a regulated society. The ultimate betrayal surfaces when William must confront the consequences of their actions on Maria’s fate.

  2. 02

    Memory & Identity

    Memory and identity are crucial themes, as the characters face the erasure of personal memories and the implications of their past. William's existential crisis over Maria's true identity challenges his understanding of self, complicating his decisions and responsibilities. The film explores how experiences shape our identities, even in a world where memories can be manipulated.

  3. 03

    Ethics & Morality

    The narrative prompts viewers to examine the ethics of genetic engineering and the morality behind memory alteration. William's internal struggle reflects broader questions about the value of individual lives versus societal mandates. The film critiques a system that prioritizes compliance over empathy, posing difficult moral dilemmas in personal relationships.

Tone & mood

What Kind of Film Is Code 46?

Bleak in tone, with steady pacing and a moderate story, going by the plot summary.

Tone
Bleak
Pacing
Steady
Story
Moderate
Intensity
High
Ending
Bleak

A melancholic and existentially anxious sci-fi thriller set in a claustrophobic dystopia, charting a doomed affair that unravels into a bleak meditation on memory, identity, and systemic control.

  • dystopian
  • melancholic
  • anxious
  • oppressive
  • forlorn
  • claustrophobic
  • dystopian future
  • genetic engineering
  • forbidden romance
  • memory erasure

Content notes: forced abortion, memory erasure, genetic taboo, existential crisis.

Quiz

How well do you remember Code 46? Test yourself on the story.

Take the quiz
Loading streaming availability…
Read next

Movies Like Code 46 With a Plot Summary

6 films close to Code 46 in story and themes that have a full plot summary here: 52 Pick-Up (1986) and Hitman (2007) lead.

All plot summaries

Missing a Movie Plot Summary?

Tell us which film you want explained next: the full story, the timeline, the characters and the ending.

Request a summary
FAQ

Code 46 Plot Questions

5 quick answers about Code 46, taken from the plot summary, character guide and setting on this page and the film’s credits.

What is Code 46 about?

In a neon‑lit, rain‑soaked Shanghai that feels both hyper‑modern and decayed, society is split between glittering urban districts and the forgotten outskirts.

Read the full plot summary

When and where does Code 46 take place?

Code 46 is set in Shanghai, Jebel Ali, United Arab Emirates and Seattle (Dystopian future). This film takes place in a dystopian future where societal disparities are pronounced, and personal freedom is heavily restricted.

The setting explained

Who are the main characters in Code 46?

The story follows William Geld (played by Tim Robbins) and Maria Gonzalez (played by Om Puri).

All the characters

What are the main themes of Code 46?

The summary picks out 3 themes: Love & Betrayal, Memory & Identity and Ethics & Morality.

The themes explained

Who directed Code 46?

Code 46 (2004) was directed by Michael Winterbottom and runs 1 hour 33 minutes.

Michael Winterbottom’s films

Coming soon to your phone

The Plot Explained Movie Summary App

From blockbusters to hidden gems: plot summaries, endings explained and timelines on your phone. Save your favorites and never miss a twist again.

Be the first to know when it launches. Your email stays private, always. Learn more about the app