Risk and source of heavy metal(loid)s (As, Cu, Cr, Pb, Mn, Ni, V, and Zn) were determined in the surrounding farmland soil of a zinc smelter in the water source area of the Mid-route of South-North Water Transfer Project of China to explore the impact of smelting activity on local environment. The heavy metal(loid)s contents were analyzed by X-ray uorescence spectrometry and their pollution levels and ecological risks were assessed by geoaccumulation index, Nemerow synthetic pollution index and potential ecological risk index. The possible sources of the heavy metals(loid)s were identi ed by multivariate statistical analysis methods. The mean contents of the heavy metal(loid)s in the farmland soil were above the local soil background values except Mn. The contents of As, Cu, Pb, Zn, and Ni in the downwind direction soil decreased with the distance increasing between the sampling site and the zinc smelter. The investigated soils were moderately to seriously polluted by heavy metal(loid)s and the heavy metal(loid)s presented moderately ecological risk as a whole. As, Cu, Pb, and Zn mainly originated from zinc smelting activities. Cr, Mn, and V primarily derived from natural source. Ni mainly came from zinc smelting activities, partly from natural source. The zinc-smelting activity in uenced the heavy metal(loid)s content, particularly Zn and Pb, in the surrounding farmland soil. The local government should strengthen the cooperative monitoring of heavy metal(loid)s in farmland and agricultural products, as well as pollutant emission monitoring and control.