A novel Cd-based cationic coordination polymer (Cd-CCP) constructed using viologen derivatives, which exhibits an unusual thirteen-fold interpenetrating diamondoid network, has been synthesized. Notably, Cd-CCP displays selective and naked-eye distinguished coloration and ion-controlled photochromism towards halide anions.