MTs function primarily by binding to metal ions through their cysteine residues, forming stable metal-thiolate complexes. This binding can neutralize the toxic effects of metals by preventing them from interacting with critical cellular components. Additionally, MTs are involved in the homeostasis of essential metals, aiding in their storage, transport, and regulation within the body.