Mercury can be a serious hazard to human health, especially in paddy soils surrounding mining areas. In this study, mercury (Hg)‐methylating microbes with the potential biomarker gene hgcA were obtained from 45 paddy soil samples in mercury mining areas in Fenghuang, Wanshan, and Xunyang. In different areas, the abundance of the hgcA gene was affected by different environmental factors, including organic matter, pH, total carbon content, total nitrogen content, and total mercury content. Phylogenetic analysis showed that hgcA microbes in paddy soils were potentially members of the phyla Proteobacteria, Euryarchaeota, Chloroflexi, and two unnamed groups. Canonical correspondence analysis showed that pH and organic matter impacted the hgcA gene diversity and the microbial community structures in paddy soils. The identification of Hg‐methylating microbes may be crucial for understanding mercury methylation/demethylation processes, which would be helpful in assessing the risk of methylmercury contamination in the food chain.