Chelating agents are compounds that can bind to metals, forming stable complexes that are more readily excreted from the body. This is particularly useful in cases of heavy metal poisoning, such as lead or mercury toxicity. Chelators like EDTA and DMSA are used to treat such conditions by reducing the bioavailability of the toxic metal ions and facilitating their removal from the body.