Melanin is the basis of coloration in many animals, and although it is often used in communication, thermoregualtion or camouflage, melanin has many other physiological functions. For example, in polluted habitats, melanin can have a detoxifying function.Melanic coloration would help to sequester in the skin the heavy metals contaminants from inside the body, which will be expulsed to the exterior when the skin is sloughed. Moreover, animals should have evolved more melanic colorations in more polluted habitats ("industrial melanism" hypothesis). We examined whether the fossorial amphisbaenian reptile, Trogonophis wiegmanni, is able to eliminate heavy metals, derived from soil pollution by seagulls depositions, through sloughing its skin. Our results suggest a covariation between levels of soil pollution by heavy metals and the concentration of heavy metals in the sloughed skins of amphisbaenians. This suggests that amphisbaenians may expel heavy metals from their bodies when they slough the skins. We also tested whether amphisbaenians inhabiting soils with higher levels of heavy metal pollution had darker (melanin-dependent) body colorations. However, contrary to predictions from the "industrial melanization" hypothesis, we found a negative relationship between soil pollution and proportions of melanic coloration. This contradictory result could, however, be explained because heavy metals have endocrine disruption effects that increase physiological stress, and higher stress levels could result in decreased melanogenesis. We suggest that although amphisbaenians might have some detoxifying mechanism linked to melanin in the skin, this process might be negatively affected by stress and result ineffective under conditions of high soil pollution.