Ir-Ni alloys supported on SiO2 have been reported to show high catalytic activity for styrene hydrogenation; however, precise control of compositions and sizes of the Ir-Ni alloys is difficult when conventional metal salts are used as precursors. Furthermore, the concomitant formation of unalloyed Ni nanoparticles disturbs quantitative discussion about Ir-Ni alloy compositions. We report herein a preparation method of Ir-Ni alloys with precisely controlled compositions on SiO2 using Ni(NO3)2 and an Ir complex possessing CN- ligands, [Ir(CN)6]3- or [Ir(ppy)2(CN)2]- (ppy = 2-phenylpyridine), as precursors. The in situ formation of cyano-bridged coordination polymers involving Ir and Ni promotes the formation of Ir-Ni alloys, whose compositions are virtually the same as expected from the amounts of Ir and Ni used for the preparation, after heat treatment under H2. The use of [Ir(ppy)2(CN)2]- as the precursor resulted in the formation of smaller Ir-Ni alloy particles than those with [Ir(CN)6]3- related to the structures of the formed coordination polymers.