A stimuli-responsive supramolecular polymer network was constructed by the orthogonal assembly of metal-ligand interactions and host-guest interactions.