We describe the results of the X-ray diffraction study of a dysprosium(III) complex with trihydrazone of 3-methyl-1-phenyl-4-formylpyrazole-5-one and 1,3,5-benzenetricarboxylic acid, as well as a heteroligand gadolinium(III) complex with tri- and dihydrazone of 3-methyl-1-phenyl-4-formylpyrazole-5-one and 1,3,5-benzenetricarboxylic acid (H3L and H3L1 respectively). It is determined that the homoligand complex of dysprosium has a M4L4 composition and a pseudotetrahedral structure in which metal ions occupy vertices of a trigonal pyramid and trinucleating ligands are located on its sides. The heteroligand gadolinium complex Gd3(L)(HL1)3 has a trigonal structure. Metal ions at the triangle vertices are linked by a trinucleating ligand located above the triangle plane, and three binucleating ligands link the central atoms in pairs. The geometry of dysprosium and gadolinium coordination polyhedra correspond to a three-capped trigonal prism.