The construction of lanthanide-based molecular magnets by a selfassembly strategy of multidentate building blocks and functional ligands is continuing to be a hot research topic. Among them, embedding 4d/5d-based building blocks into 4f molecular nanomagnets is promising as it can bring about more fascinating structures and stronger interactions between 4d/5d and 4f ions. In this work, we report the self-assembly reaction of trivalent lanthanide ions (Dy III , Er III ), multidentate ligand 1,3-di(2-pyridinyl)-1,3-propanedione (HL), and octacyanometallate building blocksErW ); and one bimetallic cation−anionic pair {[Er(HL) 2 (H 2 O) 4 ]•[Mo(CN) 8 ]}•7H 2 O (5 ErMo ) were obtained. Single-crystal X-ray diffraction analyses show that 1 DyW and 2 DyMo crystallize in the monoclinic space group and form neutral cyano-bridged chains; 3 DyMo and 6 ErMo are isostructural complexes that form a rare example of square-type d−f complexes; 4 ErW is a discrete trinuclear complex, and 5 ErMo consists of a {Er(HL) 2 (H 2 O) 4 } 3+ cation and a [Mo(CN) 8 ] 3− anionic moiety. Interestingly, one of the two pyridyl groups in β-diketone ligands is protonated during the formation of 3 DyMo , 5 ErMo , and 6 ErMo , which is uncommon in related complexes. Magnetic analyses reveal that 1 DyW , 2 DyMo , 5 ErMo , and 6 ErMo show field-induced single-molecule magnet (SMM) behaviors, and 3 DyMo is a typical SMM with an energy barrier of 119.6 K under zero dc field. Ab initio calculations were performed on these series of {Ln III −M V } heteronuclear complexes in order to provide more insights into the magnetic exchange interactions between 4d and 4f centers and their influences on the magnetic relaxation properties.