Heavy metals are naturally found in soils, but their levels may increase as a result of anthropogenic actions. This study aimed at determining the concentrations of Cd, Cu, Mn, Ni, Pb and Zn in Yellow Latosol from vegetable crops areas, as well as the influence of the cultivation and position in the landscape on the accumulation of these elements. Soil samples were collected from five farming areas and four areas with natural vegetation, which served as a reference. Soil was collected along the planting rows from three transect positions (upper, middle and lower sections of the slope), as well as from the upper portion of forest areas, at three depths (0.0-0.10 m, 0.10-0.30 m and 0.30-0.60 m). The results from the chemical analyses indicated that Cd, Cu, Mn, Pb and Zn levels in the soil increased as a result of cultivation. Only Cd and Cu concentrations were above the quality reference values for the Pernambuco State. The multivariate analysis techniques used were efficient at separating the environments and at differentiating the origin of the metals. Soils from forest areas were clearly separated from croplands, demonstrating the effect of agricultural practices on the metal contents in the soils. The principal component analysis indicated a predominantly anthropogenic origin (phosphate fertilizing) for Cd, in more superficial soil samples.