We present the first direct experimental proof that phase changes occur during the real-time lithiation of rutile TiO2 nanostructures, functioning as the anode of a solid Li-ion battery inside a transmission electron microscope.