Return of the Jedi Extended Edition 4

It is the year 32 BBY. A trade dispute between the Trade Federation and the outlying systems of the Galactic Republic has led to a blockade of the small planet of Naboo. Supreme Chancellor Finis Valorum, leader of the Galactic Senate, has secretly dispatched two Jedi, Master Qui-Gon Jinn and his Padawan, Obi-Wan Kenobi, as ambassadors to the Federation flagship in order to meet with Viceroy Nute Gunray and resolve the dispute. Unknown to them, the Trade Federation is in league with the mysterious Darth Sidious, Dark Lord of the Sith, who secretly orders Gunray to invade Naboo and kill the two Jedi upon their arrival. Their ship is destroyed and the two Jedi escape the assassination attempt by stowing themselves aboard two separate Federation landing craft leaving for the surface of Naboo.

On the planet's surface, Qui-Gon saves a local native outcast Jar Jar Binks from being trampled by a Federation transport. Endebted to the Jedi, Jar Jar leads them to an underwater Gungan settlement, Otoh Gunga, escaping the Trade Federation army. Meanwhile, the Trade Federation invades Naboo and captures their leader, Queen Amidala. The Jedi meet the Gungan leader, Boss Nass, and ask him to help the people of Naboo. Nass refuses, but Qui-Gon uses a Jedi mind trick to convince him into sending them to the surface in a bongo submarine, navigating the treacherous core of the planet. The Jedi, with Jar Jar in tow, reach Theed, the capital city of Naboo, and rescue Queen Amidala from the Trade Defense Force. They depart for Coruscant, the Galactic Republic's capital planet, to ask for help from the Senate. An astromech droid named R2-D2 manages to repair the Queen's starship and they narrowly escape an attack from Federation battleships but, due to the damage the ship's hyperdrive sustained in the attack, the Queen's party is forced to land on the desert planet of Tatooine for repairs. Qui-Gon, Jar Jar and R2, along with one of the Queen's handmaidens Padmé at the Queen's request, set out to search for a new hyperdrive generator. At Mos Espa Spaceport they befriend young Anakin Skywalker, a slave boy, who takes an immediate liking to Padmé.

Anakin is gifted with piloting and mechanics, and has built an almost-complete droid named C-3PO. Qui-Gon senses a strong presence of the Force in Anakin, and feels that he may be the Chosen One who will fulfill a prophecy by bringing balance to the Force. By entering Anakin into a podrace, Qui-Gon orchestrates a gamble in which the boy (alone, since Qui-Gon was unable to include the youth's mother in the bargain) will be released from slavery and they will win the parts needed for their ship. Anakin wins the race and joins the team as they head for Coruscant, where Qui-Gon plans to seek permission from the Jedi High Council to train Anakin to be a Jedi. Meanwhile, Darth Sidious sends his apprentice, Darth Maul, to kill the two Jedi and capture the Queen. Maul appears just as the group is leaving the planet, and duels with Qui-Gon. The fight is cut short when Qui-Gon manages to escape his black-robed assailant by jumping onboard the Naboo Royal Starship as it takes off.

On Coruscant, Qui-Gon informs the Jedi Council of the mysterious attacker he encountered on Tatooine. Because of that being's obvious mastery of the Jedi arts, the Council becomes concerned that this development may indicate the reappearance of the Sith, a religious order who were followers of the dark side of the Force and thought to be long gone. Qui-Gon also informs the Council about Anakin, hoping that he can be trained as a Jedi. After testing the boy and deliberating with one another, the Council refuses, deeming him too old for training according to the Jedi Code. They are also concerned due to their sensing a seemingly clouded future and a strong presence of fear in the boy. Meanwhile, Senator Palpatine of Naboo, warning of the corruption in the Senate, advises Queen Amidala to call for a vote of no confidence in Chancellor Valorum. Seeing no alternative, the Queen takes this advice when she addresses the Senate. Palpatine is among the candidates to replace the Supreme Chancellor, and the Queen later announces to Palpatine that she herself will return to their home planet to repel the invasion of her people. She is frustrated by the Senate's deliberation and lack of action, and feels that even if Palpatine is elected Chancellor, it will be too late. The Jedi Council send the two Jedi to accompany the Queen back to Naboo, hoping to shed light on any Sith involvement.

Back on Naboo, Padmé reveals that she is Queen Amidala—the "Queen" seen throughout the film was a decoy she used to protect herself. The real Queen forms an alliance with the Gungan people, uniting in battle against the Trade Federation. Nute Gunray is ordered by Darth Sidious to wipe out the Gungans and the Naboo as the Trade Federation prepares for battle. After much fighting against the Federation's droid army, defeat for the alliance seems imminent. However, victory comes when young Anakin accidentally takes control of a starfighter and goes on to destroy the Federation's Droid Control Ship, rendering the droid army useless. Meanwhile, Queen Amidala and her force fight their way back into the royal palace and capture Nute Gunray.

At the same time, in a Theed hangar bay, Darth Maul has been engaging in combat with the two Jedi, using a double-bladed lightsaber. The battle moves from the hangar, across a series of catwalks, to the Theed Generator Room. Obi-Wan falls behind and is divided from his master by several force fields, leaving Qui-Gon alone to fight the Sith, who mortally wounds him. Barely managing to contain his anger, Obi-Wan redoubles his assault upon Darth Maul and cuts him in half, the Sith's body falling into a melding pit. With his final breaths, Qui-Gon instructs Obi-Wan to train Anakin to become a Jedi. The newly-elected Chancellor Palpatine arrives to congratulate Queen Amidala on her victory, as Nute Gunray is sent to stand trial for his crimes.

After the battle, the Jedi Council names Obi-Wan a Jedi Knight. Obi-Wan conveys his Master's wish regarding Anakin Skywalker to Yoda, who reluctantly allows him to become Obi-Wan's apprentice. Qui-Gon's body is cremated, and Mace Windu and Yoda agree that the Sith are definitely to blame for the tragedy. Being that there are only ever two Sith at any given time (a Master and an apprentice), both Masters believe that one must still remain.

The Naboo and Gungans organize a great victory celebration on the streets of Theed, in front of the palace. Obi-Wan and Anakin are present, with Anakin the Padawan of Obi-Wan. Queen Amidala presents a gift of appreciation and friendship to Boss Nass and the Gungan people.

The opening crawl reveals that the Galactic Empire has been working on the construction of a new armored space station which is to be even larger and more powerful than the first Death Star. Jedi Knight Luke Skywalker, Chewbacca, Lando Calrissian, Princess Leia Organa, C-3PO, and R2-D2 return to Tatooine in an attempt to rescue Han Solo from the gangster Jabba the Hutt. Leia, disguised as a bounty hunter, attempts to secretly free Solo, who is still encased in carbonite. She succeeds, only to be discovered and captured by Jabba, who makes her his personal slave. Several days later Luke arrives to make one final plea to Jabba to release Solo. Luke is then captured by Jabba's guards and dropped into a dungeon to battle a rancor. After defeating the rancor he is sent along with Han Solo and Chewbacca to the Great Pit of Carkoon to be slowly consumed by the Sarlacc. With the help of R2-D2, Luke escapes and a large battle erupts; during the chaos, Leia strangles Jabba to death with her slave chains, and Han accidentally knocks Boba Fett, the bounty hunter who brought him to Jabba, into the pit where he is eaten alive by the Sarlacc. Following this, Luke blasts Jabba's sail barge with its own deck cannon, and all of the heroes manage to escape before it explodes.

Luke then returns to Dagobah to complete his Jedi training. However, upon arriving, he finds Yoda is languishing. Yoda tells Luke that no other training is required, but that he will not truly be a Jedi until he confronts Darth Vader who, Yoda confirms, is Luke's father. Yoda then dies, but not before telling Luke that "there is another Skywalker". The spirit form of Obi-Wan Kenobi then appears and confirms that Vader was once Anakin Skywalker, a former Jedi who was turned to the dark side of the Force. Though he initially seemed to imply that Vader was merely another Jedi who betrayed and murdered Anakin, Obi-Wan explains that Vader truly did this in the sense of the dark side consuming Anakin's mind, apparently destroying the good man who was Luke's father and replacing him as Vader. Luke asks Obi-Wan about the "other" Skywalker Yoda mentioned—Obi-Wan reveals that this "other" is his twin sister, hidden from Anakin and separated at birth to protect them both from the Emperor. Using his intuition, Luke quickly deduces that, to Obi-Wan's confirmation, his sister is Leia.

Meanwhile, the entire Rebel Alliance is meeting to devise an attack strategy. As part of the attack, Han is elected to lead a strike team to deactivate the shield generator on the forest moon of Endor which is projecting a protective shield up to the orbiting and incomplete Death Star. Luke, having returned from Dagobah, joins him and Leia for this mission; however, he soon fears that, after sensing Vader's presence within the nearby Imperial Fleet, his own presence may endanger the mission. On Endor, Luke and his companions encounter a tribe of Ewoks, primitive yet intelligent indigenous forest creatures of Endor. With the help of C-3PO, whom the Ewoks believe is a god, they are able to forge an alliance with the forest creatures. Later, Luke decides that the time has come for him to face Vader. He confesses to Leia the truth about her and Vader, and that he has to try to save the man who was once their father. He surrenders peacefully to Vader and unsuccessfully tries to convince his father to abandon the dark side. They go to the Death Star and meet the Emperor, who reveals that he knew of the attack before, and that the Rebel Alliance is walking into a trap. On the forest moon, the Rebels – led by Solo and Leia – enter the shield generator control facility only to be taken prisoner by waiting Imperial forces. Once they are led out of the bunker, however, the Ewoks spring a surprise counterattack. A desperate ground battle begins with the Rebels and Ewoks fighting the Imperial forces. The Rebels eventually gain the upper hand, due in large part to a stolen Imperial AT-ST Walker.

During the strike team's assault, the Rebel fleet, led by Lando, emerges from hyperspace for the battle over Endor, only to discover that the shield of the Death Star is still functioning. An intense space battle takes place as the Rebel fleet battles to give the surface party more time to complete their mission of deactivating the Death Star's shield. During the battle, the Death Star is revealed to be operational; its superlaser is fired at the Rebel fleet and obliterates two Rebel star cruisers. This forces a rethinking of strategy and the fleet closes with the Imperial star destroyers to prevent the superlaser from firing on the Rebel fleet.

On the Death Star, the Emperor tempts Luke to give in to his anger. A ferocious lightsaber duel erupts between Luke and his father. In the midst of combat, Vader reads Luke's feelings and learns that Luke has a twin sister. When Vader toys with the notion of turning Leia to the dark side, Luke gives in to his anger and brutally overpowers his father, eventually slicing off Vader's robotic right hand. However, despite the Emperor's goading, Luke refuses to kill his father, realizing that he is traveling down his father's path towards the dark side. He declares himself a Jedi, like his father before him. Upon realizing that Luke cannot be turned, the Emperor tortures and slowly kills him with Force lightning; in unspeakable pain, Luke begs his father for help. Facing a moral crisis as he sees his son dying before his own eyes, Vader finally repents in return of his former self, Anakin Skywalker, and turns on the Emperor, grabbing him over his shoulder and throwing him down a reactor shaft to his death. At the same time, however, the life support system in his suit is damaged beyond repair by the Emperor's lightning. Moments from death, he begs Luke to take off his breath mask to see him with his own eyes. Luke does so, and finally sees his father's true face: that of a pale, withered man ravaged by the dark side. He entreats Luke to leave him and save himself, and to tell Leia that there was some good left in him after all. With those last words, Darth Vader/Anakin Skywalker dies, finally at peace.

Back on Endor, the strike team finally destroys the shield generator. The Rebel fleet seizes the opportunity to launch a final assault on the Death Star in space. Lando leads Wedge Antilles and his fighter group into the interior of the Death Star and they fire at the main reactor, causing its collapse. Luke escapes the Death Star with his father's body in an Imperial shuttle. Moments later, Wedge in his X-Wing and Lando in the Millennium Falcon emerge from the Death Star as well, just as it explodes. Back on Endor, Leia senses that Luke had escaped the station before it exploded. Han believes that she loves Luke and is prepared to let her go, but Leia reassures Han of her love for him and reveals (to his surprise and relief) that Luke is actually her brother. That evening, Luke cremates the remains of his father in his black armor on a funeral pyre on Endor.

The entire galaxy celebrates the fall of the Empire and the Rebellion's victory. On Endor, Luke, Leia, Han, Lando, and the rest of the Rebellion, along with the Ewoks, celebrate the victory as well. During the celebration, Luke catches sight of the spirit figures of Obi-Wan Kenobi, Yoda and the redeemed Anakin Skywalker, who watch over them with pride.