The combination of polydentate aminated ligands with the 2-pyridyloxime-nickel-azide system leads to series of clusters with unprecedented topologies. Among them, a remarkable family of {Ni9} metallacycles that are capable of selective encapsulation of azide/halide anions in a cryptand-like cavity through hydrogen-bond interactions has been characterized.