The road traffic has become one of the main sources of urban pollution and could directly affect roadside soils. To understand the level of contamination and potential sources of trace metals in roadside soils of Shanghai, 10 trace metals (Sb, Cr, Co, Ni, Cu, Cd, Pb, Hg, Mn and Zn) from two urban/rural roads (Hutai Road and Wunign-Caoan Road) were analyzed in this study. Antimony, Ni, Cu, Cd, Pb, Hg and Zn concentrations were higher than that of soil background values of Shanghai, whereas accumulation of Cr, Co and Mn were minimal. Significantly higher Sb, Cd, Pb contents were found in samples from urban areas than those from suburban area, suggesting the impact from urbanization. The concentrations of Sb and Cd in older road (Hutai) were higher than that in younger road (Wunign-Caoan). Multivariate statistical analysis revealed that Sb, Cu, Cd, Pb and Zn were mainly controlled by traffic activities (e.g. brake wear, tire wear, automobile exhaust) with high contamination levels found near traffic-intensive areas; Cr, Co, Ni and Mn derived primarily from soil parent materials; Hg was related to industrial activities. Besides, the enrichment of Sb, Cd, Cu, Pb and Zn showed a decreasing trend with distance to the road edges. According to the enrichment factors (EFs), 78.5% of Sb, Cu, Cd, Pb and Zn were in moderate or significant pollution, indicating considerable traffic contribution. In particular, recently introduced in automotive technology, accumulation of Sb has been recognized in 42.9% samples of both roads. The accumulation of these traffic-derived metals causes potential negative impact to human health and ecological environment and should be concerned, especially the emerging trace elements like Sb.