Transition metal sulfides (TMSs) present high theoretical capacity as anode materials for Lithium-ion batteries, and structural design of TMSs is proved to be an effective strategy to acquire satisfactory electrochemical performances. Herein, the hierarchical NiS2/CoS2@N,S-C nanospheres consisting of NiS2/CoS2 matrixes and N,S-codoped carbon outer layer (N,S-C) are fabricated. Additionally, NiS2/CoS2@N,S-C nano spheres with different core-shell structures appear in this study when the amount of nickle and cobalt is precisely controlled, which further confirms the different abilities of nickle and cobalt in tailoring and modulating structure. In particular, the NiS2/CoS2@N,S-C(Ni:Co=1:2) with yolk-shell property presents sufficient internal void space, which is conductive to the transport of Li+ and electron. Moreover, the protective N,S-codoped carbon layer and the porous sheet arrays provide the enhanced structural stability and increased active sites. Benefitting from the unique structure, the NiS2/CoS2@N,S-C(Ni:Co=1:2) anode with binary metal sulfide composition presents good cycling performance (795 mAh g(-1) at 0.2 A g(-1) after 100 cycles) and rate capability (469 mAh g(-1) at 5 A g(-1)). This study provides a reference for the design and preparation of novel TMSs-based materials with different morphologies in the field of energy storage. (c) 2022 Elsevier B.V. All rights reserved.