Based on systematic sampling and analysis of heavy metal elements, this study built a geological environmental model for the Gejiu stannum ore in Yunnan. Factors affecting environment include: polymetallic sulfides in the Gejiu primary mineral easily give the birth to acid due to oxidation; carbonate can consumes acid result from process of oxidation of sulfide and stop transfer of metals and etc. Tonnage of the metals discharged to the surrounding areas before mining is: 12 100 tons of Cu, 70 000 tons of Pb, 101.96 tons of Cd, 12 000 tons of As, and 23 300 tons of Sn, indicating that the Gejiu area enjoyed a quality environment. Influenced by the mining, dressing and smelting, the soil quality has been worsen by heavy metals in the study areas such as Kafang, Niushipo, and Yunxi, which are several time higher than the state standard of class C land.