The ternary germanides U 2M 17− y Ge y were synthesized respectively with 2 ⩽ y ⩽ 3 for M ≡ Fe and 1.3 ⩽ y ⩽ 3 for M ≡ Co. These compounds crystallize in the hexagonal Th 2Ni 17-type structure. Rietveld X-ray diffraction study indicates a strong preferential site occupation of Ge atoms on one (12k) of the four different transition element sites of this type of structure. All the compounds order ferromagnetically with a Curie temperature T C going through a maximum at T C = 545(5) K for y = 2.5 with increasing Ge content in the U 2Fe 17− y Ge y system, whereas T C decreases linearly as y increases for the U 2Co 17− y Ge y system. Also, the effect of the substitution of Co for Fe in U 2(Fe 14.5− x Co x )Ge 2.5 alloys on their structural and magnetic properties was investigated. The results are compared with those obtained for the intermetallic compounds based on rare earth elements RE 2Fe 17 and RE 2Co 17.