What was the flagellant movement of the black death?

Christians believed the black death was a punishment from god so the flagallant movement during the time of the black death was when people would offer bodily penance to god by whipping themselves in attempt to rid themselves of the black death.