The title complex, [CdNi(CN)4(C6H7N)2]n, adopts a slightly distorted octahedral geometry around the Cd centre. Four cyanide N atoms occupy the equatorial coordination sites around the Cd centre. The structure consists of corrugated and cyanide-bridged polymeric networks made up of tetracyanonickelate ions coordinated to cadmium, with the Ni ion coordinated by four cyanide ligands in a square-planar arrangement. The Cd and Ni atoms occupy special positions of 2/m site symmetry. The 3-methylpyridine group, except for two methyl H atoms, lies on a crystallographic mirror plane. The 3-methylpyridine molecules, bound to cadmium in trans positions, are located on both sides of the network. The bonding in the networks occurs because of a departure of the Ni-C-N-Cd sequence of atoms from linearity at the C and N atoms.