In this study, 100 samples were collected from the topsoil of different land-use types (urban, industrial and agricultural) in Shiraz. The content of 26 elements was analyzed. CF, EF, Igeo, NPI, and PLI indices were used to evaluate soil pollution. Ecological risk assessment of metals was calculated by using Er and RI indexes. PCA analysis and the PMF model were used to determine the source of metals in soil. Also, the spatial distribution of metals and risk index were plotted using inverse distance weighting (IDW) with ArcGIS software (10.3). The metal concentrations in the soil ranged from 0.2067 ± 0.0946 (Ag) to 85,673.50 ± 4689.27 (Ca) mg kg have significant risk among metals. PCA and PMF models show that The main sources of elements in shiraz soil are vehicularly emitted, fertilizer use, sewage irrigation, atmospheric deposition, and parent material. Generally, results show that Most of the study area has considerable risk, especially concerning PTEs. So, it is recommended to pay more attention to the issue of traffic in the urban environment in to improve the state of the urban area.