Many Christians thought God was punishing them for their sins with the Black Death. How did they try to get forgiveness?

Many Christians thought God was punishing them for their sins with the Black Death How did they try to get forgiveness class=