these are some things pirates did:
one pirate punishment was to lock the victim in wrist and leg irons and toss them down into the ships hold-aka brig; which acted as a temporary prison. This was most often used on a pirate caught stealing from another pirate, or to make a captive reveal secrets. Sometimes the victim would be clapped in irons on the ships deck, positioned there to suffer under the scorching sun or whipping wind and rain.
The most common punishment for pirates was flogging-that is, being lashed with a cat-o'-nine'-tails across the bare back. The "cat" consisted of nine tightly wound and knotted strands of cord attached to a piece of wood bound in leather. Some psychotic pirates would weave fish hooks into the knotted cords. The victim was secured either standing belly-up against the mast or lying prone on the deck grating. He usually received a sentence of a dozen strokes, administered by the ships quartermaster with the entire crew in attendance. In extreme cases, the entire crew participated by offering a stroke or two apiece. To make matters worse, the pain of the flogging was usually intensified by adding salt and/or brine to the open wounds.
another pirate punishment was keelhauling. this was virtually equivalent to a death sentence. Keelhauling involved binding the condemned persons hands and feet with rope and then hauling or dragging him by the rope from one side of the ship to the other through the water. they would be dragged under the keel of the vessel, where the razor-sharp barnacles clinging to the ships hull would scrape and tear the skin, leaving a painfully raw and bloody mess. The victim usually died immediately from drowning or shark attack, or days later from multiple infected wounds.
Marooning was another punishment doled out by pirate crews-usually reserved for cases of cowardly conduct, as in deserting the ship during battle or defrauding his crew of a proper share of the plunder. people who were marooned on a deserted island were left with only a flask of rum, a flintlock pistol, some gunpowder, and one round of shot so the person could shoot themselves if they wanted.
there are probably alot more.