Jack Sparrow is brought on board the EITC flagship, the Endeavour, where he and Beckett make a deal: if Jack leads Beckett to Shipwreck Cove and convinces the pirates to come outside, Beckett will guarantee Jack's freedom and not hand him over to Davy Jones.
In exchange for leading Beckett to Shipwreck Cove and persuading the pirates to emerge, Jack Sparrow secures his freedom from Beckett, who promises to keep him out of Davy Jones' clutches.