Ion-exchange resins bearing thiol groups to remove mercury.