The Matrix is a 1999 science fiction action film written and directed by the Wachowskis, and produced by Joel Silver. Starring Keanu Reeves, Laurence Fishburne, Carrie-Anne Moss, Hugo Weaving, and Joe Pantoliano, and as the first installment in the Matrix franchise, it depicts a dystopian future in which humanity is unknowingly trapped inside a simulated reality, the Matrix, which intelligent machines have created to distract humans while using their bodies as an energy source. When computer programmer Thomas Anderson, under the hacker alias "Neo", uncovers the truth, he "is drawn into a rebellion against the machines" along with other people who have been freed from the Matrix.
The Matrix is an example of the cyberpunk subgenre of science fiction. The Wachowskis' approach to action scenes was influenced by Japanese animation and martial arts films, and the film's use of fight choreographers and wire fu techniques from Hong Kong action cinema influenced subsequent Hollywood action film productions. The film popularized a visual effect known as "bullet time", in which the heightened perception of certain characters is represented by allowing the action within a shot to progress in slow-motion while the camera appears to move through the scene at normal speed, allowing the sped-up movements of certain characters to be perceived normally. While some critics have praised the film for its handling of difficult subjects, others have said the deeper themes are largely overshadowed by its action scenes.
At an abandoned hotel within a major city, a police squad corners a woman, who overpowers them with superhuman abilities. She flees, with the police and a group of mysterious suited Agents capable of similar superhuman feats pursuing her. She answers a ringing public telephone and vanishes just before the Agents crash a truck into the booth.
Computer programmer Thomas Anderson, known by his hacking alias "Neo", feels something is wrong with the world and is puzzled by repeated online encounters with the phrase "the Matrix". Trinity contacts him and tells him a man named Morpheus has the answers he seeks. A team of Agents and police, led by Agent Smith, arrives at Neo's workplace searching for him. Though Morpheus attempts to guide Neo to safety via telephone, Neo is captured and coerced into helping the Agents locate Morpheus, whom they regard as a "known terrorist". Undeterred, Neo later meets Morpheus, who offers him a choice between two pills; red to reveal the truth about the Matrix, and blue to return him to his former life. After Neo swallows the red pill, his reality disintegrates, and he awakens in a liquid, slime-filled pod, naked, his muscles atrophied and weakened, among countless other humans attached to an elaborate electrical system. He is retrieved and brought aboard Morpheus's flying ship, the Nebuchadnezzar.
As Neo recuperates from a lifetime of physical inactivity from the pod, Morpheus explains the truth. In the early 21st century, there was a war between humans and intelligent machines. When humans blocked the machines' access to solar energy, the machines harvested the humans' bioelectric power, keeping them pacified in the Matrix, a shared simulated reality modeled after the world as it existed at the end of the 20th century. The machines have conquered the world, and the city of Zion is the last refuge of free humans. Morpheus and his crew are a group of rebels who hack into the Matrix to "unplug" enslaved humans and recruit them; because they understand the Matrix's simulated nature, they can bend its physical laws. Morpheus warns Neo that death within the Matrix kills the physical body, and the Agents he met are powerful sentient computer programs that eliminate threats to the system, while machines called Sentinels destroy rebels in the real world. Neo's prowess during virtual combat training cements Morpheus's belief that Neo is "the One", an especially powerful human prophesied to free humanity and end the war.
The group enters the Matrix to visit the Oracle, the prophet who predicted that the One would emerge. She suggests to Neo that he is not the One and warns that he will have to choose between Morpheus's life and his own. Agents and tactical police, tipped by Cypher, a disgruntled crew member who betrays Morpheus in exchange for a comfortable life in the Matrix, ambush the group. Morpheus allows himself to be captured so the rest of the crew can escape. Cypher exits the Matrix first and murders several crew members as they lie defenseless in the real world. Before he can kill Neo, Cypher is killed by Tank, a crewman whom he only wounded.
In the Matrix, the Agents interrogate Morpheus to learn his access codes to the mainframe computer in Zion. Tank proposes killing Morpheus to prevent this, but Neo resolves to return to the Matrix to rescue Morpheus, as the Oracle prophesied; Trinity insists she accompany him. While rescuing Morpheus, Neo gains confidence in his abilities, performing feats comparable to the Agents'. Morpheus and Trinity exit the Matrix, but Smith ambushes and kills Neo before he can leave. As a group of Sentinels attack the Nebuchadnezzar, Trinity whispers to Neo that he cannot be dead, because she loves him and the Oracle told her she would fall in love with the One. She kisses Neo and he revives with newfound power to perceive and control the Matrix. He effortlessly defeats Smith, and leaves the Matrix just as the ship's electromagnetic pulse disables the Sentinels.
Later, Neo makes a telephone call inside the Matrix, promising the machines that he will show their prisoners "a world where anything is possible". He hangs up and flies into the sky.
- Keanu Reeves as Neo: A computer programmer, born Thomas A. Anderson, who secretly operates as a hacker named Neo. Reeves described his character as someone who felt that something was wrong, and was searching for Morpheus and the truth to break free. Will Smith turned down the role of Neo to make Wild Wild West, because of skepticism over the film's ambitious bullet time special effects. He later stated he was "not mature enough as an actor" at that time, and that if given the role, he "would have messed it up". Nicolas Cage also turned down the part because of "family obligations". Warner Bros. sought Brad Pitt or Val Kilmer for the role. When both declined, the studio pushed for Reeves, who won the role over Johnny Depp, the Wachowskis' first choice.
- Laurence Fishburne as Morpheus: A human freed from the Matrix and captain of the Nebuchadnezzar. Fishburne stated that once he read the script, he did not understand why other people found it confusing. However, he had a doubt if the movie would ever be made, because it was "so smart". The Wachowskis instructed Fishburne to base his performance on the character Morpheus in Neil Gaiman's Sandman comics. Gary Oldman, Samuel L. Jackson, and Val Kilmer were also considered for the part. Despite widespread rumors, Sean Connery was offered the role of the Architect in the sequels, not that of Morpheus.
- Carrie-Anne Moss as Trinity: A human freed by Morpheus, crewmember of the Nebuchadnezzar, and later Neo's romantic interest. After reading the script, Moss stated that at first, she did not believe she had to do the extreme acrobatic actions as described in the script. She also doubted how the Wachowskis would get to direct a movie with a budget so large, but after spending an hour with them going through the storyboard, she understood why some people would trust them. Moss mentioned that she underwent a three-hour physical test during casting, so she knew what to expect subsequently. The role made Moss, who later said, "I had no career before. None." Janet Jackson was initially approached for the role but scheduling conflicts prevented her from accepting it. In an interview, she stated that turning down the role was difficult for her, so she later referenced The Matrix in the 'Intro' and 'Outro' interludes on her tenth studio album Discipline.
- Hugo Weaving as Agent Smith: A sentient "Agent" program of the Matrix whose purpose is to destroy Zion and stop humans from getting out of the Matrix. Unlike other Agents, he has ambitions to free himself from his duties. Weaving stated that the character was enjoyable to play because it amused him. He developed a neutral accent but with more specific character for the role. He wanted Smith to sound neither robotic nor human, and also said that the Wachowskis' voices had influenced his voice in the film. When filming began, Weaving mentioned that he was excited to be a part of something that would extend him. Jean Reno was offered the role, but declined, unwilling to move to Australia for the production.
- Joe Pantoliano as Cypher: Another human freed by Morpheus and crewmember of the Nebuchadnezzar, but one who regrets taking the red pill and seeks to be returned to the Matrix, later betraying the rebels to Agent Smith. Pantoliano had worked with the Wachowskis prior to appearing in The Matrix, starring in their 1996 film Bound.
- Marcus Chong as Tank: The "operator" of the Nebuchadnezzar, he is Dozer's brother, and like him was born outside the Matrix.
- Anthony Ray Parker as Dozer: Tank's brother, a "natural" human born outside of the Matrix, and pilot of the Nebuchadnezzar.
- Julian Arahanga as Apoc: A freed human and crew member on the Nebuchadnezzar.
- Matt Doran as Mouse: A freed human and programmer on the Nebuchadnezzar.
- Gloria Foster as The Oracle: A prophet who still resides in the Matrix, helping the freed humans with her foresight and wisdom.
- Belinda McClory as Switch: A human freed by Morpheus, and crew member of the Nebuchadnezzar.
- Paul Goddard as Agent Brown: One of two sentient "Agent" programs in the Matrix who work with Agent Smith to destroy Zion and stop humans escaping the system.
- Robert Taylor as Agent Jones: One of two sentient "Agent" programs in the Matrix who work with Agent Smith to destroy Zion and stop humans escaping the system.
- Ada Nicodemou as DuJour: A reference to the White Rabbit in Alice's Adventures in Wonderland.