At the beginning of Star Wars Episode IV: A New Hope, Solo and Chewbacca are indebted to Jabba the Hutt. Solo accepts a charter to transport Obi-Wan Kenobi(Alec Guinness), Luke Skywalker (Mark Hamill), C-3PO (Anthony Daniels), and R2-D2 (Kenny Baker) to Alderaan in Han's ship, the Millennium Falcon, for a payment to clear the debt.
However when the crew and passengers arrive at the planets coordinates, they discover that Alderaan has been destroyed by the Death Star, and the Falcon is then captured and held upon the Death Star. Enticed by the likelihood of a large reward, Solo and Chewbacca help Skywalker rescuePrincess Leia (Carrie Fisher), held captive aboard the station.
After delivering Skywalker, Leia, and the droids to the Rebels, Solo and Chewbacca receive payment for their services and depart; but return to assist Skywalker, ultimately enabling the latter to destroy the Death Star. Following this, Han is appointed a Captain by the Rebel Alliance.
When the Empire attacks the Rebels' base on Hoth in Star Wars Episode V: The Empire Strikes Back (1980), Solo transports Chewbacca, Leia, and C-3PO toCloud City for safety. The bounty hunter Boba Fett (Jeremy Bulloch) tracks the Falcon to Cloud City, and Darth Vader (David Prowse/James Earl Jones) forces Cloud City's administrator, Lando Calrissian (Billy Dee Williams), to help capture Solo, who is sealed in carbonite for delivery to Jabba the Hutt. Although Calrissian frees Vader's other captives, they do not succeed in rescuing Solo.
At the beginning of Star Wars Episode VI: Return of the Jedi (1983) Leia infiltrates Jabba's palace and frees Solo; but they are caught by Jabba the Hutt before they can escape. When Jabba orders them to be executed, they are rescued by Skywalker. Reunited with the Rebels, Solo is commissioned as a general. Along with Leia and Chewbacca, he leads a team deactivating the force fields protecting the Empire's second Death Star, in which they are aided by the Ewoks.