Skirmish off of the Black Sand Beach

Prelude
When the Black Pearl returned from Davy Jones' Locker, they lacked of water and therefore the Pearl send a landing party to the Kraken Island. There, the Chinese pirates led by Tai Huang captured Sparrow, Barbossa and their fellow pirates while the Empress captained by Sao Feng boarded the Black Pearl. There, William Turner's betrayal was revealed to his crewmates. Soon afterwards, the HMS Endeavour captained by Lord Beckett appeared. Jack Sparrow was transferred to the ship and the rest of the Rescue crew remained aboard the Black Pearl. A company of East India Trading Company soldiers led by Mercer came aboard the Black Pearl, much to the dismay of Sao Feng, who expected the ship for himself. Neverthelass, Mercer told him that since the Black Pearl was the only shhip matching the Flying Dutchman, the Company would keep it. Angry about his betrayal, Feng mad a deal with Hector Barbossa, who made him believe that Elizabeth Swann is in fact Calypso. Feng accepted the deal and returned tho the Empress together with Elizabeth and Tai Huang, but he left a great number of his men aboard the Pearl so tha they could support the Rescue crew. In the same time Jack Sparrow made his own deal with Beckett in the Captain’s cabin of the Endeavour: He agreed to deliver him the pirates in exchange for his personal freedom.

Skirmish
When Sparrow and Beckett wanted to sign their deal with a handshake, the Pearl suddenly started firing her guns at the Endeavour and sailed on while the pirates went on the Blue Coats aboard and killed them all, except for Mercer who jumped over board and eventually returned to the Endeavour. Jack Sparrow managed to escape from the Endeavour and returned to the Pearl, where the battle was already over. He immediately ordered to bring Will Turner to the brig

Aftermath
Lord Beckett immediately ordered to follow the Pearl and send the Flying Dutchman after the Empress. However, the Endeavour was unable to pursuit the Pearl as he main mast which was damaged by a cannonball collapsed. Later the day, Will turner used the dead bodies of the EITC marines for sending inrormation to Beckett: He tied them to Barrels and threw them over board, creating some kind of trace after the Black Pearl, so that the Endeavour could follow her.

Source

 * Pirates of the Caribbean: At World's End