Source plot synopsis — includes the ending
The ship is damaged passing through the Federation blockade but spared from destruction by astromech droid R2-D2, and the group lands for repairs on the outlying desert planet of Tatooine, situated beyond the Republic's jurisdiction. Qui-Gon, Jar Jar, R2, and Padmé, disguised as one of her own handmaidens, visit the settlement of Mos Espa to purchase a new part for the hyperdrive. They encounter a junk dealer, Watto, and his nine-year-old slave Anakin Skywalker, a gifted pilot and engineer who has built a protocol droid, C-3PO. Qui-Gon senses a strong presence of the Force within Anakin and is convinced that he is the prophesied "Chosen One," who is destined to restore balance to the Force. With Watto refusing to accept payment in Republic currency, Qui-Gon wagers both the required hyperdrive part and Anakin's freedom on a podrace. Anakin wins the race and joins the group to be trained as a Jedi, leaving behind his mother, Shmi, as is the Jedi way. En route to their starship, Qui-Gon is attacked by Darth Maul, Sidious's apprentice, who was sent to capture Amidala. After a brief lightsaber duel, Qui-Gon escapes on board the starship with the others.
Qui-Gon and Obi-Wan escort Padmé to Coruscant so she can plead her people's case to Valorum and the Galactic Senate. Qui-Gon asks the Jedi Council for permission to train Anakin as a Jedi, but the Council refuses, concerned that Anakin is vulnerable to the dark side of the Force due to his age. Undaunted, Qui-Gon vows to train Anakin anyway. Naboo's Senator Palpatine persuades Amidala to call for a vote of no confidence in Valorum to elect a more capable leader and to resolve the crisis. Though she successfully pushes for the vote, Amidala grows frustrated with the corruption in the Senate and decides to return to Naboo. Qui-Gon and Obi-Wan are ordered by the Jedi Council to accompany the queen and investigate the return of the Sith, whom they had believed to be extinct for more than a millennium.
On Naboo, Padmé reveals herself as the queen before the Gungans and persuades them to join in an alliance against the Trade Federation. Jar Jar is promoted to general and joins his tribe in a battle against the droid army, while Padmé leads the search for Gunray in Theed. During a battle in a hangar, Anakin flees to a starfighter and accidentally triggers its autopilot, traveling to the battle against the Federation droid control ship, and inadvertently causes the control ship's destruction from within, which deactivates the droid army. Meanwhile, Darth Maul infiltrates the Theed Palace and engages Qui-Gon and Obi-Wan in a lightsaber duel. Maul fatally impales Qui-Gon with his double-bladed lightsaber, before being bisected by Obi-Wan and falling down a shaft. Before Qui-Gon dies, he asks Obi-Wan to train Anakin.
The Republic arrests Gunray, and Palpatine is elected as Chancellor. Jedi Grand Master Yoda promotes Obi-Wan to the rank of Jedi Knight and reluctantly accepts Anakin as Obi-Wan's apprentice. That evening, at Qui-Gon's funeral, Yoda contemplates the likelihood of a second Sith Lord existing beyond Maul, given legends about Sith lords always having a master. The following day, a celebration of their victory on Naboo and the reconciliation of the Gungans and Naboo is held, where Padmé rewards Boss Nass with a peace-making trophy.
Sources and content license
Source and revision history ↗ · Adapted from Wikipedia contributors, Star Wars: Episode I – The Phantom Menace. Section headings and formatting adjusted. · Content license