The Hpn and HspA proteins from H. pylori are significant for nickel homeostasis and protect the cells from higher concentrations of external metal ions. Both proteins have a unique histidine- and cysteine-rich domain at the C terminus. The interactions of Ni(2+), Bi(3+), Zn(2+) and Cd(2+) ions with C-terminal Ac-CCSTSDSHHQ-NH(2) and Ac-EEGCCHGHHE-NH(2) fragments from Hpn and the Ac-GSCCHTGNHD-NH(2) sequence from HspA were studied by potentiometry, mass spectrometry, circular dichroism and UV-Vis spectroscopy. Ac-CC-NH(2) was used as a reference peptide. The studies have shown that nickel ions form planar complexes with a {2S(-),N(-)} binding mode. The thiol sulfurs of the -Cys-Cys- motif are also the anchoring sites for Bi(3+), Zn(2+) and Cd(2+) ions. The studied protein fragments have the highest affinity for Bi(3+) ions. The thermodynamic stability of Ni(2+) is much higher then that of Zn(2+).