C-3PO and R2-D2 are sent by Luke Skywalker on a mission to the fortress of crime lord Jabba the Hutt, who now holds the captive Han Solo. The two droids are made to work for Jabba while Leia infiltrates the palace with Chewbacca to rescue Han. They are caught in the act, however, and are all held captive. Luke comes to save them all but is also captured. Jabba sentences them to execution in the sarlaac, a large living pit that devours an being that falls in. Luke, executes a brilliant plan and takes his new lightsaber from R2-D2 and rescues the rebels with the help of Lando Calrissian. Luke returns to Dagobah to complete his training, but Yoda dies shortly after his arrival. Obi-Wan then informs Luke that Leia is his sister. They then return to the rebel fleet, where the Rebellion plans a daring attack on the new Death Star. Han, Leia, Luke, Chewie and the droids head to Endor where the shield generator for the Death Star is located while Lando leads the space attack on the Death Star. Luke explains to Leia that they are twins and he must go to face Vader. The entire battle turns out to be a trap laid by the Emperor to destroy the Rebellion. Luke allows himself to be captured so that he can get to Vader. Luke tries to turn Vader back to the light. The Emperor nearly drives Luke to the dark side and he almost kills his father. In the end, Vader turns back to the light and kills the Emperor to save his son, but dies in the process. Luke escapes and, with the help of the native Ewoks on Endor, the Rebellion destroys the Death Star, and balance is finally brought to the Force.