Backstory
This song is about the Great Plague of London in 1665-1666. London had suffered several plague epidemics already in the 1600s, and many inhabitants had survived previous outbreaks.
The infected were locked in their homes, or in plague hospitals known as pest houses. Church bells were rung to announce each death.
In 1666 the Great Fire of London killed much of the rat population blamed for spreading the disease, although records suggest cases were already decreasing beforehand.