Due to the special sensitivity of typical ecologically fragile areas, a series of human life, mining, and other activities have a greater impact on the environment. In this study, three coal mines in Ordos City on the Loess Plateau were selected as the study area, and the pollution levels of heavy metals in the area were studied by measuring As, Hg, Cr, Cd, Cu, Ni, and Pb in the soil of 131 sampling points. Combined with the concept of “co-occurrence network” in biology, the level of heavy metals in soil was studied using geostatistics and remote sensing databases. The results showed that the concentrations of Hg, Cr, Ni, Cu, and Pb in more than half of the sampling points were higher than the local environmental background value, but did not exceed the risk control value specified by China, indicating that human factors have a greater influence, while Cd and As elements are mainly affected Soil parent material and human factors influence. Heavy metal elements have nothing to do with clay and silt but have an obvious correlation with gravel. Cd, Pb, As and Ni, Cd, Cr are all positively correlated, and different heavy metals are in space The distribution also reflects the autocorrelation, mainly concentrated in the northeast of the TS mining area and the middle of the PS mining area.