In this study, Co/Ni-MOF-74-derived CoNi2S4 nanoparticles embedded in porous carbon (CoNi2S4@C) were successfully prepared using Co/Ni-MOF-74 as precursor. And, CoNi2S4@C exhibits excellent electrochemical performance as an anode material for sodium ion batteries.