Total heavy metal concentrations were determined in soil samples of seven selected areas along the Guadiamar river valley affected by the toxic flood, after removal of the deposited sludge. Mean total concentrations of nine elements (As, Au, Bi, Cd, Cu, Pb, Sb, Tl and Zn) out of the 23 (As, Au, Ba, Be, Bi, Cd, Co, Cr, Cu, In, Mn, Mo, Ni, Pb, Sb, Sc, Sn, Th, Tl, U, V, Y and Zn) analysed were higher in sludge-covered soils than in unaffected soils. Mean values of total As, Au, Pb, Sb, Tl and Zn in sludge-affected soils were higher than the upper limits for normal soils world-wide. Mean concentrations of Bi, Cd and Cu were within these ranges, although some individual values exceeded the upper limits. In all sampling areas, severe heavy metal pollution was observed in the superficial layers (0-20 cm) of most of the affected soils, which decreased downward in the soil profile. Generally, in soils with more than 25% of clay, concentration of heavy metals below the 20-cm depth decreased to values close to those of the background level of the Guadiamar valley soils, while in coarser soils, heavy metal pollution penetrated below this depth, being noticeable down to a depth of at least 50-80 cm.