In some coal mining areas, the soil will gradually sink and collapse due to underground gouging and form water areas with rainfall, and the mercury and methylmercury accumulated in the soil will enter the water environment and become potential mercury pollutants source. Therefore, in order to understand the temporal and spatial distribution characteristics of mercury in soil under the influence of coal mining activities, total mercury and methylmercury in the soil of subsidence areas located in Huainan, China with different subsidence years were collected and tested. The results show that longer the subsidence years in the soils of different mining areas, lower the methylmercury and mercury methylation rate. In the same mining area, the methylmercury and mercury methylation in the soil will slowly increase with the subsidence time. The total mercury and methylmercury in cultivated soil around the mining area are only close to half of the uncultivated topsoil. The total mercury in farmland soil is mainly concentrated in the topsoil. At the same time, the total mercury continues to decrease with the increase of soil depth. The methylmercury in different farmland soils has a similar trend of methylmercury with the increase of depth, and all peak at the same depth. We find that the main reason is that soil subsidence affects the distribution of soil particle size in depth and then affects the internal structure of soil. This research can provide reference materials for future research on the methylation reaction of mercury in the bottom sediments of subsidence waters.