Knowledge of the diversity of mercury (Hg)-methylating microbes in the environment is limited due to a lack of available molecular biomarkers. Here, we developed novel degenerate PCR primers for a key Hg-methylating gene (hgcA) and amplified successfully the targeted genes from 48 paddy soil samples along an Hg concentration gradient in the Wanshan Hg mining area of China. A significant positive correlation was observed between hgcA gene abundance and methylmercury (MeHg) concentrations, suggesting that microbes containing the genes contribute to Hg methylation in the sampled soils. Canonical correspondence analysis (CCA) showed that the hgcA gene diversity in microbial community structures from paddy soils was high and was influenced by the contents of total Hg, SO4(2-), NH4(+), and organic matter. Phylogenetic analysis showed that hgcA microbes in the sampled soils likely were related to Deltaproteobacteria, Firmicutes, Chloroflexi, Euryarchaeota, and two unclassified groups. This is a novel report of hgcA diversity in paddy habitats, and results here suggest a link between Hg-methylating microbes and MeHg contamination in situ, which would be useful for monitoring and mediating MeHg synthesis in soils.