The aim of this work was to determine the genetic structure of Rhizobium leguminosarum bv. trifolii population isolated from root nodules of Trifolium repens growing in heavy metal contaminated Bolesław waste-heap area and compare it with that of an unpolluted control Bolestraszyce population. The 684-bp long dinitrogenase reductase (nifH) gene fragments were amplified in a PCR reaction and then sequenced. An analysis of nifH gene amplicons of 21 rhizobial strains from each of the studied populations revealed substantially reduced genotype (h) and nucleotide (π) diversities in the metallicolous Bolesław population in comparison to the non-metallicolous Bolestraszyce one, and showed a significant genetic differentiation between these populations (F(ST) = 0.159, p = 0.018). Among the strains under investigation, six genotypes (A-F) with 95-99% nifH gene sequence identities were distinguished. Studied T. repens nodule isolates indicated the highest nifH gene sequence similarities (95-100%) with R. leguminosarum bv. trifolii reference strains and on nifH phylogram all these strains formed monophyletic, highly supported clade (100%). The decreased genotype and nucleotide diversities of the waste-heap R. leguminosarum bv. trifolii population, compared to that from the control area and substantial genetic differentiation between populations of nifH gene, is arguably the consequence of the random genetic drift (Tajima's D = 2.042, p = 0.99).