The bacterial pathogens Xanthomonas oryzae pathovars oryzae (Xoo) and oryzicola (Xoc) cause leaf blight and leaf streak diseases on rice, respectively. Pathogenesis is largely defined by the virulence genes harboured in the pathogen genome. Recently, we demonstrated that the protein HpaP of the crucifer pathogen Xanthomonas campestris pv. campestris is an enzyme with both ATPase and phosphatase activities, and is involved in regulating the synthesis of virulence factors and the induction of the hypersensitive response (HR). In this study, we investigated the role of HpaP homologues in Xoo and Xoc. We showed that HpaP is required for full virulence of Xoo and Xoc. Deletion of hpaP in Xoo and Xoc led to a reduction in virulence and alteration in the production of virulence factors, including extracellular polysaccharide and cell motility. Comparative transcriptomics and reverse transcription-quantitative PCR assays revealed that in XVM2 medium, a mimic medium of the plant environment, the expression levels of hrp genes (for HR and pathogenicity) were enhanced in the Xoo hpaP deletion mutant compared to the wild type. By contrast, in the same growth conditions, hrp gene expression was decreased in the Xoc hpaP deletion mutant compared to the wild type. However, an opposite expression pattern was observed when the pathogens grew in planta, where the expression of hrp genes was reduced in the Xoo hpaP mutant but increased in the Xoc hpaP mutant. These findings indicate that HpaP plays a divergent role in Xoo and Xoc, which may lead to the different infection strategies employed by these two pathogens.