The ecological environment in Loess Plateau of Northern Shaanxi is fragile, so the soil pollution caused by the exploitation of coal resources cannot be ignored. With Shigetai Coal Mine in Loess Plateau of Northern Shaanxi as the object of study for field survey and sampling, the content of heavy metals in soil is analyzed, the environmental pollution in the research area is evaluated by the single factor pollution index method, comprehensive pollution index method and potential ecological risk index method, and the spatial distribution characteristics of heavy metals are discussed by the geostatistics method. According to the study results, the average contents of heavy metals Hg, Cd, Pb and Cr are 2.03, 1.36, 1.11 and 1.23 times of the soil background values in Shaanxi Province respectively and the average contents of other heavy metals are lower than the soil background values in Shaanxi Province; Hg and Cd show moderate variation while As, Pb, Cr, Zn, Ni and Cu show strong variation; the skewness coefficients and kurtosis coefficient of Cd, As and Cu in the soil within the research area are relatively high, and these elements are accumulated in large amounts. Single factor pollution index (Pi) and potential ecological risk index (E) indicate that heavy metal Hg is the main pollution factor and mainly distributed in the east and north of the research area. The comprehensive index of potential ecological risk (RI) of the research area is 1336.49, showing an extremely high ecological risk, and the distribution characteristics of potential ecological risk are consistent with that of potential ecological risk index (E) of Hg. The results of ecological risk warning show that Hg is in a slight warning status, while Cd, Pb and Cr are in a warning status. The areas with high ecological risk warning values are mainly distributed in the east and north, and the whole research area shows relatively obvious zonal distribution law. The soil is disturbed greatly during the coal mining, so the ecological governance of the mine area shall adapt to the local natural conditions and regional environmental characteristics and follow the principle of “adjusting governance measures based on specific local conditions and classifications”. An environmentally sustainable governance manner shall be adopted to realize the protection of the ecological environment and high-quality development of coal resources.