Final Victory

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. Boba Fett dies in the Sarlacc pit. 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. Darth Vader realizes that he cannot stand by and allow the Emperor to kill Luke. 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.
A large cylindrical object moves through space heading towards Earth, sending out an indecipherable signal and disabling the power of any vessel or station that it passes. As it takes orbit around Earth, it continues to send out a signal and disrupting the global power system, and then starts causing extreme weather patterns to develop over the planet while evaporating the oceans. Starfleet Command on the last of its power reserves sends out a subspace signal warning of the danger. On Vulcan, the former crew of the USS Enterprise decide to return to Earth to face the punishment for the willful destruction of the ship; Spock, still recovering from being reborn on the Genesis planet, goes with them. The crew uses the seized Klingon Bird of Prey, renamed the HMS Bounty, to return to Earth. As they enter the solar system, they hear Starfleet's warning and the alien signal; Spock is able to determine that it matches the song of humpback whales, long since extinct on Earth, and that the object will continue to wreck havoc on the planet until it can be answered. The crew devices a plan, to slingshot around the Sun to time travel back to the late 20th century and return with a whale.
The time travel process is completed successfully, placing them in the year 1986, though their dilithium crystals are nearly drained and cannot be used in the current state to return to the future. After cloaking the Bird of Prey and landing it in a San Francisco, California park and adjusting to the time period, the crew splits up; Kirk and Spock to locate a whale, Scotty, Dr. McCoy and Sulu to device a holding tank for the whale, and Uhura and Chekov to search for a nuclear power source to repair the dilithium crystals. Kirk and Spock are able to quickly discover a pair of humpback whales, "George" and "Gracie", at the Cetacean Institute, and are told by the Institute's whale expert, Dr. Gillian Taylor, that the whales are shortly going to be released into the wild, making the pair ideal for their needs. However, to be able to track them, Kirk attempts to woo Dr. Taylor to reveal the tracking codes for the whales. Despite his pleads, she rebuffs him.
Scotty, McCoy, and Sulu are able to work with materials fabricator to create and acquire "transparent aluminum", a lightweight material that can hold the water needed in the tank aboard the Bounty. While Uhura and Chekov are able to locate the U.S.S. Enterprise, a nuclear-powered aircraft carrier, and draw some of its power to restore the dilithium, but as they do, Chekov is captured, and a resulting escape attempt severally injures him and he is taken to a hospital. McCoy worries for Chekov's health due to the barbaric practices of the current era of medicine, and the crew put together an escape attempt, forcing Kirk to reveal their true intent to Dr. Taylor to pull it off. After they safely recover Chekov, Dr. Taylor reveals that the whales have been released a day early, and coerces Kirk to bring her along so she can help find them. The crew is able to locate the whales before they are hunted by whalers, and transport the creatures aboard. With Dr. Taylor and the whales, the crew reverses the slingshot maneuver and return to the future.
The Bounty approaches Earth but immediately loses power due to the alien signal. The ship splashes down into the San Francisco bay, and they are able to release the whales from the hold. The whales are able to answer the signal, causing the object to restore Earth to its normal condition and to return to the depths of outer space. Despite their success, the crew is put to trial at Starfleet for several charges, including the destruction of the Enterprise, but in light of their heroic efforts, only the charge of disobeying a superior officer is not waived, with the punishment being the demotion of Kirk from Admiral to Captain, giving him command of a new starship. Though smitten by Kirk, Dr. Taylor takes a position aboard a civilian science vessel, being the only expert on whales in this century. The crew departs to their new vessel, the newly constructed USS Enterprise A, and depart on another mission.
Approaching its 200th anniversary, Gotham City's leaders fear that the high level of criminal activity will deter citizens from attending the celebrations. Gotham's mayor William Borg orders District Attorney Harvey Dent to make the city safe again, in hopes of revitalizing local business. Dent, in turn, targets mob boss Carl Grissom, who sponsors much of the criminal activity within Gotham and has paid off a significant segment of the police force. 
Meanwhile, a dark vigilante dressed as a bat has attracted the attention of both the police and the local media. Newspaper reporter Alexander Knox is attempting to investigate, but his questions are deflected by skeptical cops, including Lt. Eckhardt, one of many police officers on the take from Grissom. After stonewalling Knox, Eckhardt is shown taking a payoff from Grissom's second in command, Jack Napier. 
Grissom, on discovering that his mistress is involved with Napier, sets him up to be killed by Eckhardt in a raid on Axis Chemicals. The plot is foiled by the arrival of Police Commissioner James Gordon, who wants Napier taken alive, and Batman. Batman captures Napier, but releases him when Bob the Goon holds Gordon hostage at gunpoint. Batman vanishes, and in the confusion, Napier shoots and kills Eckhardt, then attempts to shoot a re-emerged Batman. The latter deflects his shot, sending shrapnel into the former's face. Napier falls over a railing into a vat of chemicals, presumably to his death. Although surrounded by the police, Batman escapes the scene. 
Batman, as we discover, is actually billionaire industrialist Bruce Wayne, an orphan who lives alone in the large mansion Wayne Manor, with only his butler Alfred Pennyworth in attendance. At a fundraising party, Bruce meets and falls for famous photojournalist Vicki Vale, recently arrived in town to cover the "Bat Man phenomenon." 
Napier, in the meantime, is not dead but horribly disfigured, with white skin, green hair, and a permanent grin (after a botched reconstructive surgery attempt). Already erratic, the trauma has apparently driven him completely insane. Calling himself "The Joker", he kills Grissom and usurps his criminal empire. His first scheme is to spread terror in the city by creating hygiene products that can kill by fatal hilarity when used in certain combinations, laced with a deadly chemical known as "Smylex." Following the death of a news anchor on-air, the city becomes paralyzed with fear. Making war on several fronts, the Joker then sets a trap at the Gotham Museum of Art for Vicki, with whom he has become smitten; his fellows start to slash and deface the entire legacy of Western Art, but as one of them approaches to Francis Bacon's Figure with Meat, the Joker stops him saying "I kinda like this one". Batman intervenes and saves Vicki, to whom he then gives the secret of the Joker's chemical combinations. Batman renders her unconscious, and she awakes at home. Incensed at Batman eluding him while taking Vale and ruining his poisoning scheme, the Joker vows to eliminate the mysterious vigilante for interfering with his plans. 
Vicki's apartment is then the scene of a confrontation between the Joker, who has come to woo her, and Bruce, who has come to try and confess about his double-life but not getting very far. After Bruce challenges the Joker to a fight, the Joker pulls a gun and asks him: "Tell me something, friend. Have you ever danced with the devil by the pale moonlight?" He then shoots Bruce. The Joker then leaves amid his own hoopla, and Vicki is shocked to see that Bruce has disappeared, leaving behind only a metal platter which he used as an impromptu bulletproof vest. 
That confrontation confirmed for Bruce that the Joker is actually the man who murdered his parents many, many years ago in Gotham. The final clue was that his parents' murderer said the same phrase to him as The Joker said in Vicki's apartment ("Ever dance with the Devil by the pale moonlight?"). As Bruce grapples with this memory, he is shocked by the sudden appearance of Vicki in the Bat Cave; Alfred having decided that she deserved to know the truth. 
The Joker has put his own plans in motion to upstage the city's canceled anniversary celebrations with a grand spectacle: a nighttime parade at which he will dispense $20 million in free cash. Vicki and Knox are there to cover the pandemonium, and they notice strange tanks on the balloons. In the middle of his generosity, the Joker begins gassing the crowd. Batman arrives in his bat-shaped jet(in this film called the batwing) and snatches the balloons away to carry them out of the city. Furious, the Joker shoots Bob the Goon, his number one thug. Batman returns to make a strafing run on the Joker, who responds by shooting down the jet with an insanely long-barreled revolver. Vicki approaches the downed craft but is captured by the Joker, who leads her to the top of Gotham Cathedral. Dazed but not finished, Batman pursues. At the top of the cathedral, the two adversaries confront each other in single combat. 
In a moment of opportunity, the Joker pulls Batman and Vicki off the belfry, where they cling to the ledge for their lives. as The Joker begins mocking them his helicopter appears and he grabs hold of a dangling ladder, about to escape. Batman shoots a wire around the Joker's leg, connecting it to a stone gargoyle on the ledge. As the Joker is lifted away, the wire pulls the gargoyle loose and he plummets to his death. 
The movie ends with Commissioner Gordon announcing the Gotham police have arrested all the Joker's gang remnants who were not killed by Batman, and unveiling the Bat-Signal supplied by Batman with a note promising to return if the city needs him.