Controlled hydration leads to four derivatives of a metal-organic framework consisting of cadmium ions, N1,N1,N4,N4-tetrakis(4-(pyridin-4-yl)phenyl)benzene-1,4-diamine, and coordinated and free nitrates. The balance of water coordination and the multitude of bonding of the weakly coordinated nitrate lead to a progressive change in the coordination number of the Cd2+ ions from eight to seven to six without great perturbation to the 4-fold interpenetration three-dimensional framework.