The most popular theory of how the plague ended is through the implementation of quarantines. The uninfected would typically remain in their homes and only leave when it was necessary, while those who could afford to do so would leave the more densely populated areas and live in greater isolation.