Mesostructured materials are considered promising candidates using in high-performance secondary batteries due to their specific properties beneficial for electrochemical redox and ion diffusion; however, the synergistic mechanism is still unclear and a general preparation approach is highly needed. Here, we report a mesostructured nitrogen-doped CoNiSe2 as high-performance sodium-ion battery anode derived from room-temperature synthesized CoNi-metal organic frameworks, and in-depth insight about synergistic effect during charge-discharge is demonstrated. The mesostructure provides three-dimensional ion transport channels, which are conducive to stably inserting/extracting Na+ ions. In-situ Raman spectra and in-situ X-ray diffraction patterns verify the good real-time reversibility of the mesostructured CoNiSe2/NC upon charge-discharge. Moreover, CoNiSe2/NC shows fast reaction kinetics and enhanced electrical conductivity. The results show that CoNiSe2/NC anode displays a high and stable capacity of 498 mAh g-1 after 600 cycles at 0.2 A g-1, and 426 mAh g-1 after cycling 1500 times at 1 A g-1, exceeding many of the reported anodes. Even under 50 °C or ‒10 °C, the anode exhibits stable performances. In addition, full cell provides 270 mAh g-1 after 500 cycles at 0.5 A g-1, exhibiting a promising potential for applications. Those findings are important for developing emerging energy-storage materials and will find broad applications in many battery systems.