Layered compounds BaM2Ge4Ch6 (M = Rh, Ir and Ch = S, Se) with pyrite-type building blocks and Ge-Ch heteromolecule-like anions.