Full story
With Davy Jones's heart in hand, Beckett rules the seas. In Port Royal he hangs anyone tied to piracy, even children. The condemned sing "Hoist the Colours," the call that summons the nine Pirate Lords to the Brethren Court at Shipwreck Cove. The catch is that Jack, one of the lords, is stuck in Davy Jones' Locker and never passed on his piece of eight. Barbossa, Will, Elizabeth, Tia Dalma and the rest of the crew go to Singapore for the navigational charts of Sao Feng, the local Pirate Lord. The Company attacks, and in the confusion Will makes a secret deal with Feng: hand over Jack in exchange for the Pearl, which Will wants to use to free his father. In the Locker, an endless white desert, Jack is alone, talking to copies of himself. The crew finds him. On the way back they pass boats of dead souls, among them Governor Swann, executed by Beckett. They also learn that whoever stabs Jones's heart becomes captain of the Flying Dutchman.
From there, everyone betrays everyone. Feng and Beckett ambush the Pearl. Feng takes Elizabeth, thinking she is the goddess Calypso. Jones attacks Feng's ship, and the dying Feng passes his Pirate Lord title to Elizabeth. Held on the Dutchman, she watches Bootstrap lose his mind to the curse. Norrington frees her and is killed by Bootstrap. Jack throws Will overboard with the compass so he can lead Beckett to the Court.
At Shipwreck Cove, Barbossa wants to free Calypso, trapped in human form as Tia Dalma. Elizabeth wants war. Captain Teague, Keeper of the Code and Jack's father, reminds them only a Pirate King can declare war. Every lord votes for himself until Jack votes for Elizabeth. Now Pirate King, she declares war. Barbossa frees Calypso, but Will reveals it was Jones who betrayed the goddess and helped imprison her. Furious, she vanishes and stirs up a huge maelstrom.
Inside it, the Pearl and the Dutchman battle. Barbossa marries Will and Elizabeth mid-fight. Up the mast, Jack takes the heart from the chest and nearly stabs it himself to become immortal. Jones mortally wounds Will. Jack puts the blade in Will's hand, Will pierces the heart, and Jones dies. Will becomes captain of the Dutchman, which rises from the sea free of the curse. The two ships destroy the Endeavour, and Beckett goes down with it.
Will gets one day ashore for every ten years at sea, ferrying the souls of the dead. He spends that day with Elizabeth and leaves her the chest with his heart. Barbossa steals the Pearl again, but Jack had already torn the center out of the chart to the Fountain of Youth. After the credits, ten years later, Elizabeth and a boy watch Will return at sunset.

