The invention provides genes that are unique either to Ehrlichia ruminantium strain Gardel or to Ehrlichia ruminantium strain Welgevonden, or allelic couples which are present in both strains but whose sequences differ between the two strains, as genetic markers to differentiate between these two strains. The invention also provides diagnostic methods using these genetic markers.