Aminophosphorus acids were prepared, their complexes with transition metal ions, Ca(II) and Mg(II) were investigated. Lanthanide complexes of macrocycles with bis(phosphonate) group in side chain were investigated as compounds binding selectively to bone