A metallo-capped polyrotaxane containing calix[4]arenes and cyclodextrins and its highly selective binding for Ca2+.