The proposal deals with the structural determination of the material TiSnSb (used as anode for Li-ion batteries) upon electrochemical cycling, namely during lithium intercalation. In particular, during discharge the crystalline material undergoes a series of phase transitions followed by an amorphization of the structure. For this reason we propose an in-situ study on two complementary instruments, D20 and D4. Using a custom-made electrochemical in-situ cell (already tested on both instruments and fully operational) we will measure the first discharge, followed by a full cycle of this material and at the same time we will aquire ND powder patterns. On D20 the goal is the determination of the phase diagram (and of possible intermediate metastable phases) during discharge and before amorphization, while on D4 the goal is the use of Pair Distribution Function analysis, performed in-situ for the first time in a Li-ion battery, to describe the short-range order that remains in this material after it is amorphized.