Flagellants were religious zealots who would whip themselves in public as atonement for their sins. They caused problems for cities during the plague because they would travel from city to city spreading the plague because they carried the bacteria with them.