By the time construction work finished on the temple in 698, Emperor Tenmu had been dead for 12 years.
A decade later work began on the new capital, Heijō-kyō (平城京 - modern Nara), and in 718 Yakushi-ji was partly dismantled and moved to its new (current) home.