Desciption about Piracy
Punishment for Pirates if they get caught
During the 17th and 18th centuries, once pirates were caught, justice was meted out in a summary fashion, and many ended their lives by "dancing the hempen jig", or hanging at the end of a rope Public execution was a form of entertainment at the time, and people came out to watch them as they would to a sporting event today. Newspapers were glad to report every detail, such as recording the condemned men's last words, the prayers said by the priests for their immortal souls, and their final agonising moments on the gallows.
In the cases of more famous prisoners, usually captains, their punishments extended beyond death. Their bodies were enclosed in iron cages (for which they were measured before their execution) and left to swing in the air until the flesh rotted off them- a process that could take as long as two years.
Self Protection measures and increased sea patrols to fight against Piracy
First and foremost, the best protection against piracy is simply to avoid encountering them. This can be accomplished by using tools such as radar to detect any unknown ships travelling.They also deploy coast guards to train them while sailing.