Flagellation or Flogging is hitting the human body with a whip The word comes from flagellum the Latin word for Whip. Usually it is done as a punishment. Some people also do it as a form of sexual arousal, in the context of BDSM.
Flogging was used to punish convicts in the penal colonies of Australia. After Irish convicts tried to start a riot at Castle Hill in 1804, many were flogged. Paddy Galvin was given 300 lashes at Parramatta, New South Wales. The first one hundred were across his back, and tore open his skin so the bones in his spine could be seen. The second hundred was given across his buttocks which became like a jelly. A doctor ordered that the third hundred was given across the back of his legs. People watching were hit by pieces of skin and flesh. There are records in Tasmania of a convict named Greenwood, being given 1000 lashes for wounding an officer while trying to escape.