Heavy metals (HMs) in soils pose significant risks on ecosystem and human health. To design targeted regulatory measures for mitigating and controlling the risk, it is necessary to accurately identify the pollution sources and environmental risks of soil HMs, as well as to reveal the linkages between them. To date, yet systematic investigation aimed at deciphering the links between source apportionment of soil HMs and their associated environmental risks is still lacking. To fill the gap, an integrated framework has been developed in this study and applied for dissecting the source-sink relationship and source-oriented ecological and health risks of soil HMs in Shanxi, a province with rich coal resource, in which long-term coal mining activities in history has resulted in soil HMs pollution and unavoidably posed environmental risks. Two advanced receptor models, multivariate curve resolution alternating least squares based on maximum likelihood principal component analysis (MCR-ALS/MLPCA) and multilinear engine 2 (ME2), have been employed for apportioning the potential sources, and their apportionment results are jointly incorporated into a modified ecological risk index and a probabilistic health risk assessment model for identifying the source-oriented ecological and health risks posed by soil metals. The results show that the soils in study area have been polluted by HMs (i.e., Cd, Cr, Hg and As) to varying degrees. Industrial activities (35%–35.8%), agricultural activities (11.1%–20.5%), atmospheric deposition (10.5%–13%) and mix source (31.5%–42.6%) are apportioned as the main contributors of soil HMs in the area. The source-oriented ecological risk assessment suggests Hg has presented significant ecological risk and largely contributed by the sources from atmospheric deposition and industrial activities. The source-oriented health risk assessment shows the non-carcinogenic hazard level and carcinogenic risk posed by soil HMs in the study area are acceptable. Relatively, industrial activities and mix source have contributed more on the health risks.