how do they get the black pearl out of the bottle
Black Pearl In the present day, the Pearl has remained trapped in its bottle for 'five winters', Jack keeping it in his pocket even as he is forced to use a smaller ship known as the Dying Gull to go to sea. Later in the film, Barbossa uses Blackbeard's sword to restore the Pearl to its regular size; stabbing the bottle with Blackbeard's sword cracks it, the bottle subsequently breaking as the Pearl grows to the size of a larger model, only regaining its full size when it returns to the sea. Barbossa then claims the ship for himself to battle the undead Captain Salazar, tying Jack to the rear of the ship. After tracking down the island where the Trident of Poseidon is located, triggering a mystical convergence that opens a trench in the ocean, Salazar claims the Trident for himself, but Henry Turner and Carina Smyth destroy the trident when Salazar attempts to use it to kill Jack. The destruction of the trident restores Salazar and his men to full life, but also causes the sea trench to collapse, with the Pearl's crew lowering its anchor to pull Jack, Henry and Carina to safety. Salazar attempts to climb up the anchor to attack Jack, but Barbossa sacrifices himself to stab Salazar and save the others (Carina having been identified as his daughter). At the film's conclusion, after witnessing Carina and Henry as they watch Will Turner's reunion with Elizabeth Swan- the destruction of the Trident also freeing Will from his role as captain of the Flying Dutchman, Jack departs as he is restored to his traditional role as the captain of the Black Pearl with both his crew from the Dying Gull and Barbossa's crew from the Queen Anne's Revenge joining him.