Parley

If a pirate is captured by an enemy ship, he has the right to declare parlay, or temporary protection, until he may have an audience with the enemy captain.

At this point, he cannot be harmed. Parlay is not considered concluded until said captives and captains have completed negotiations.