Molecular mimicry occurs when a toxin's structure closely resembles that of an endogenous molecule, allowing it to bind to receptors, enzymes, or other proteins with high affinity. This structural similarity can mislead cellular mechanisms, leading to disrupted function and potential toxicity. Examples include heavy metals like lead, which can mimic calcium ions, and certain pesticides that resemble neurotransmitters.