A composite of CoxSy and carbon shell is successfully formed, and as a result it can well alleviate volume change as well as offer sufficient ions/electrons transfer channels, contributing to enhance electrochemical performance.