The black flag was part of a flag signal combination, together with a plain red flag. After closing in on a target ship, the black flag would be raised, signaling that quarter will be given if the target crew surrendered their cargo/valuables without a fight.