From the Black Death to the COVID-19 pandemic, combining the genetic data of a pathogen with historical records, archaeological artifacts and epidemiological studies can uncover its origins.