Xanthomonas campestris pv. campestris (Xcc) is the causative agent of black rot in crucifers. Here, one EZ-Tn5 transposon mutant of Xcc, altered in bacterial attachment, was isolated. Further analysis revealed that the transposon was inserted in the wxcX gene (encodes a hypothetical protein) of the transposon mutant. Sequence analysis revealed that WxcX is highly conserved in Xanthomonas, but none has been characterized. In this study, it was indicated that mutation of wxcX resulted in enhanced bacterial attachment, reduced virulence on the host cabbage, and increased sensitivity to sodium dodecyl sulfate. The affected phenotypes of the wxcX mutant could be complemented to wild-type levels by the intact wxcX gene. Site-directed mutagenesis revealed that E408 and E411 are critical amino acid residues for WxcX function in bacterial attachment. Taken together, our results demonstrate the roles of wxcX in attachment, virulence, and tolerance to sodium dodecyl sulfate in Xanthomonas for the first time.