Years ago Peter gained the respect of many fellow pirates as well as the title 'The Pillager', he was also dubbed as the pirate king.
Peter also met Galavant at some point and most likely had a duel as he marvels at his fighting skills.
The Pirate King greets Galavant, Isabella and Sid and says that they don't need a ship, and has his men sing to explain that their ship washed up on a hill overlooking the river. Trapped, they now capture travelers, take their money, and sell homemade organic desserts.
The Pirate King takes Galavant out and says that they met years before, and knows who he is. He admits that he and his crew have been unable to work together to free themselves, and offers to release Isabella and Sid in return for Galavant joining his crew. When he points out that Isabella is a mouth breather, Galavant takes offense and admits that he's gotten used to her. When the Pirate King repeats the insult, Galavant easily disarms him and takes him captive.
Galavant leads the Pirate King back to the camp, promising that he will save his team. However, Sid and Isabella have already worked as a team to defeat the pirates and recover the jewel. Galavant believes that they can do something legendary if they stick together, and his traveling companions agree. The pirates admit that they miss working together as a crew, and Galavant advises them to work together to get the pirate ship back into the water. Once they do, the pirates can take them to Valencia. Cheered at the prospect of escape, the pirates agree.
With the help of Galavant, Isabella, and Sid, the pirates free their ship and set sail.(Comedy Gold)