A new method was demonstrated to construct mesoporous and carbon hybrid structures of β-In2S3 from the thermal decomposition of layered molecular precursors. When applied to LIBs, they all exhibit good cycling stability and excellent rate performance due to the great uniformity of mesopores and pyrolysis carbon distributed in the materials.