The word quarantine stems from the Latin quadraginta and the Italian quaranta, both meaning “40” and traces back to the Black Death.
The Black Death of the 14th century killed half the population of Europe and millions more in Asia and Africa. The likely cause of the Black Death was plague; a bacterial (Yersina pestis) infection carried by rats and transmitted by flea bites (bubonic plague).
In an attempt to protect coastal cities from the plague epidemic, ships arriving from infected ports were required to sit at anchor for 40 days before landing. This practice was known as quarantine.
It remains unclear why the 40-day stipulation was enforced. It is possible that the arbitrary number coincided with biblical references like Jesus’ fast in the desert, Moses’ time on Mount Sinai, and the Christian observation of Lent.
Quarantine stations for maritime travellers were called lazarettos, a direct biblical reference to the parable of Lazarus the beggar (and patron saint of lepers in Catholicism). Leprosy, of course, has a long history of social isolation.