Over the past one hundred years, mathematics has been used to understand and predict the spread of diseases, relating important public-health questions to basic infection parameters. Matthew Keeling describes some of the mathematical developments that have improved our understanding and predictive ability.