Flogging
Flogging was a form of corporal punishment used to enforce discipline aboard ships. Sailors were whipped for offences under strict regulations. It was eventually abolished due to reform movements.
Source:
Oxford Companion to Ships and the Sea