The heterostructure of transition metal dichalcogenides (TMDs), such as one-dimensional (1D) nanowires embedded in two-dimensional (2D) nanosheets, has drawn much research attention due to its unique electronic, spintronic, magnetic, and catalytic properties. The general approach for preparing such a heterostructure is through electron beam lithography or annealing on the 2D template, triggering direct formation of the 1D component within the 2D matrix. However, the thermodynamic mechanism behind the transition from 2D to 1D is still not well clarified. Here, by in situ scanning transmission electron microscopy (STEM), we present a direct observation of two metastable phases, M-Mo 1+x Te 2 and M-Mo 6 Te 6 , which enable a smooth transition from 2D 2H-MoTe 2 nanosheets to 1D Mo 6 Te 6 nanowires (NWs). As a result, an atomically sharp "NW−MoTe 2 −NW" heterojunction is formed, with a coherent interface between 2D 2H-MoTe 2 and 1D Mo 6 Te 6 NWs. The study provides a deep understanding of the growth of 1D Mo 6 Te 6 NWs from 2D MoTe 2 and a pathway for predictive and controlled atomic-level manipulation for the directed synthesis of the 1D/2D heterostructure.