Xanthomonas is a large genus of Gram-negative bacteria that cause disease in hundreds of plant hosts, including many economically important crops. Pathogenic species and pathovars within species show a high degree of host plant specificity and many exhibit tissue specificity, invading either the vascular system or the mesophyll tissue of the host. In this Review, we discuss the insights that functional and comparative genomic studies are providing into the adaptation of this group of bacteria to exploit the extraordinary diversity of plant hosts and different host tissues.