Lithium-ion batteries (LIBs) commercially dominate portable energy storage and have been extended to hybrid/electric vehicles by utilizing electrode materials with enhanced energy density. However, the energy density and cycling life of LIBs must extend beyond the current reach of commercial electrodes to meet the performance requirements for transportation applications. Carbon-based anodes, serving as the main negative electrodes in LIBs, have an intrinsic capacity limitation due to the intercalation mechanism. Some nanostructured carbon materials offer very interesting reversible capacities and can be considered as future anode materials. However, their fabrication processes are often complicated and expensive. Theoretically, using a lithium metal anode is the best way of delivering high energy density due to its largest theoretical capacity of more than 3800 mAh g-1; however, lithium metal is highly reactive with liquid electrolytes. Alternative anodes are being explored, including other lithium-reactive metals, such as Si, Ge, Zn, V, and so forth. These metals react reversibly with a large amount of Li per formula unit to form lithium-metal alloys, rendering these materials promising candidates for next-generation LIBs with high energy density. Though, most of these pure metallic anodes experience large volume changes during lithiation and delithiation processes that often results in cracking of the anode material and a loss electrical contact between the particles. Nanosized metal sulfides were recently found to possess better cycling stability and larger reversible capacities over pure metals. Further improvements and developments of metal sulfide-based anodes rely on a fundamental understanding of their electrochemical cycling mechanisms. Not only must the specific electrochemical reactions be correctly identified, but also the microstructural evolution upon electrochemical cycling, which often dictates the cyclability and stability of nanomaterials in batteries, must be clearly understood. Probing these dynamic evolution processes, i.e. the lithiation reactions and morphology evolutions, are often challenging. It requires both high-resolution chemical analysis and microstructural identification. In situ transmission electron microscopy (TEM) coupled with electron energy loss spectroscopy (EELS) has recently been raised as one of the most powerful techniques for monitoring electrochemical processes in anode materials for LIBs. In this work, we focus on elucidating the origin of the structural stability of SnS2 during electrochemical cycling by revealing the microstructural evolution of SnS2 upon lithiation using in situ TEM. Crystalline SnS2 was observed to undergo a two-step reaction after the initial lithium intercalation: (1) irreversible formation of metallic tin and amorphous lithium sulfide and (2) reversible transformation of metallic tin to Li-Sn alloys, which is determined to be the rate-determining step. More interestingly, it was discovered that a self-assembled composite framework formed during the irreversible conversion reaction, which has not been previously reported. Crystalline Sn nanoparticles are well arranged within an amorphous Li2S "matrix" in this self-assembled framework. This nanoscale framework confines the locations of individual Sn nanoparticles and prevents particle agglomeration during the subsequent cycling processes, therefore providing desired structural tolerance and warranting a sufficientelectron pathway. Our results not only explain the outstanding cycling stability of SnS2 over metallic tin anodes, but also provide important mechanistic insights into the design of high-performance electrodes for next-generation LIBs through the integration of a unique nanoframework.