Yersinia pestis is the causative agent of plague, causing three human plague pandemics in history. Comparative and evolutionary genomics of Y. pestis are extensively discussed in this review. Understanding the genomic variability and the adaptive evolution of Y. pestis from the genomic point of view will contribute greatly to plague detection, identification, control and prevention.