Dietary components can influence the absorption and toxicity of heavy metals. For example, a diet low in iron and calcium can increase the absorption of lead. On the other hand, certain foods, like garlic and onions, which contain sulfur compounds, can increase the excretion of heavy metals like mercury and cadmium.