flagellation

noun

1.
beating as a source of erotic or religious stimulation
2.
beating with a whip or strap or rope as a form of punishment
Derived from:
flagellate