 Heijō, as the ‘penultimate court’, however, was abandoned by the order of Emperor Kammu in 784 CE in favor of the temporary site of Nagaoka, and then Heian-kyō (Kyoto) which retained the status of capital for 1,100 years, until the Meiji Emperor made the final move to Edo in 1869 CE.This first relocation was due to the court's transformation from an imperial nobility to a force of metropolitan elites and new technique of dynastic shedding which had refashioned the relationship between court, nobility, and country.Moreover, the ancient capital lent its name to Nara period.