Changes in human effective population size overlap the beginning and end of a critical time in European medieval history, also characterized by the Black Death epidemic