In the third film, Elizabeth helps rescue Jack from the Locker. She becomes the pirate lord of the South China Sea after Sao Feng's death; she is later elected Pirate King by the Fourth Brethren Court. As King, she declares war on Beckett and leads the battle against him. Mid battle, Elizabeth marries Will Turner, who becomes the new captain of the Flying Dutchman after almost dying at the hands of Davy Jones. The curse of being the captain only allows Will to return to shore for one day every ten years. After Jones’s defeat and justice for her father’s murder, Elizabeth gives up piracy and returns to Port Royal. She and Will consummate their marriage and she falls pregnant. Will leaves her his heart in a chest and Elizabeth promises to protect it. In a post-credits scene after the film, Elizabeth has given birth to a son and the boy, now 9-10 years old, eagerly awaits the arrival of his father as the Dutchman sails towards them.