The genetic variations in internal transcribed spacers (ITS) spanning ITS-1, 5.8S and ITS-2 rDNA of Dicrocoelium dendriticum, isolated from sheep and goats in four geographical regions in Shaanxi province, were examined. The lengths of ITS-1, 5.8S and ITS-2 rDNA sequences for D. dendriticum were 749 bp, 161 bp and 234 bp, respectively. Intra-specific sequence variations of D. dendriticum were 0–0.5% for ITS-1 and 0–1.3% for ITS-2 rDNA, while the inter-specific variations among species in genus Dicrocoelium in ITS-2 rDNA were 3.4–12.3%. Phylogenetic analysis based on sequences of ITS-2 rDNA showed that all D. dendriticum isolates in the present study were grouped with reference D. dendriticum isolates from sheep and goats, and D. dendriticum isolates from cattle and Japanese serow were clustered in a sister clade. However, the phylogenetic tree could not reveal geographically genetic relationships of D. dendriticum isolates in different origins and hosts. These findings provided basic information for further study of molecular epidemiology and control of D. dendriticum infection in Shaanxi province as well as in the world.