People who, after the Black Death Plague in the 1300's, were both grief stricken and believed they had commited great sins. They would beat themselves with sticks and whips and such as punishment for their sins.
The Black Death brought Flagellants after it had taken its toll on the European cities.