When a conflict arose between ex-Emperor Heijo and Emperor Saga, Tamuramaro was appointed by the ex-Emperor as a palace construction officer for the transfer of the capital to Heijo.
平城天皇と嵯峨天皇が対立したとき、田村麻呂は上皇によって平城遷都のための造宮使に任じられた。